2005-04-24 08:51:33 +00:00

18 lines
410 B
Haskell

{-# OPTIONS -cpp #-}
#include "../../../../config.h"
import Plugins
import API
-- an example where we just want to load an object and run it
main = do
let includes = [TOP ++ "/examples/load/null/api"]
m_v <- load "../Null.o" includes [] "resource"
v <- case m_v of
LoadSuccess _ v -> return v
_ -> error "load failed"
putStrLn ( show (a v) )