Files
docs
examples
conf
dynload
eval
hier
iface
load
io
api
API.hs
prog
Makefile
TestIO.hs
load_0
loadpkg
null
thiemann0
thiemann2
unloadpkg
loadCLib
make
makewith
misc
multi
objc
pdynload
pkgconf
plugs
reload
shell
unload
unloadAll
README
TIMINGS
build.mk
check.mk
eval.mk
foreign.mk
scripts
src
AUTHORS
BUILDING.CVS
LICENSE
Makefile
README
TODO
VERSION
autogen.sh
config.guess
config.h.in
config.mk.in
config.sub
configure
configure.ac
install-sh
shaniqua-plugins/examples/load/io/api/API.hs

17 lines
301 B
Haskell
Raw Normal View History

2005-04-24 08:51:33 +00:00
{-# OPTIONS -fglasgow-exts #-}
module API where
import Data.Dynamic
data TestIO = TestIO {
field :: IO String
}
deriving (Typeable, Show)
instance Show (IO String) where
show _ = "<<io action>>"
testio :: TestIO
testio = TestIO { field = return "default value" }