14 lines
316 B
Haskell
14 lines
316 B
Haskell
|
|
-- an example where we want to compile and load a file
|
|
|
|
import Plugins
|
|
import API
|
|
|
|
main = do
|
|
make "../Null.hs" ["-i../api"]
|
|
m_v <- load "../Null.o" ["../api"] [] "resource"
|
|
v <- case m_v of
|
|
LoadSuccess _ v -> return v
|
|
_ -> error "load failed"
|
|
putStrLn ( show (a v) )
|