
import System.Plugins
import API

-- an example where we just want to load an object and run it

main = do
    m_v   <- load "../Null.o" ["../api"] [] "resource"
    case m_v of
        LoadFailure es  -> mapM_ putStrLn es >> error "load failed"
        LoadSuccess m v -> do print $ a v ; unload m
