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
LICENSE
Makefile
README
TODO
VERSION
config.guess
config.h.in
config.mk.in
config.sub
configure
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" }
|