Update examples
This commit is contained in:
11
testsuite/load/load_0/prog/Main.hs
Normal file
11
testsuite/load/load_0/prog/Main.hs
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
import System.Plugins
|
||||
import API
|
||||
|
||||
main = do
|
||||
m_v <- load_ "../Test.o" ["../api"] "resource"
|
||||
v <- case m_v of
|
||||
LoadFailure _ -> error "load failed"
|
||||
LoadSuccess _ v -> return v
|
||||
let s = field v
|
||||
print s
|
1
testsuite/load/load_0/prog/expected
Normal file
1
testsuite/load/load_0/prog/expected
Normal file
@ -0,0 +1 @@
|
||||
"success"
|
Reference in New Issue
Block a user