docs
examples
conf
dynload
eval
hier
iface
load
io
api
API.hs
prog
Makefile
TestIO.hs
load_0
loadpkg
null
thiemann0
thiemann2
unloadpkg
make
makewith
misc
multi
objc
pdynload
pkgconf
plugs
popen
printf
reload
shell
typecase
unload
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.ac
install-sh
17 lines
301 B
Haskell
17 lines
301 B
Haskell
|
|
{-# 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" }
|