Update examples

This commit is contained in:
Don Stewart
2005-09-03 04:45:14 +00:00
parent 5321754614
commit dff0363224
421 changed files with 19 additions and 9 deletions

View File

@ -0,0 +1,19 @@
import System.Plugins
import API
conf = "../Plugin.in"
stub = "../Plugin.stub"
main = do
status <- makeWith conf stub ["-i../api", "-i../../../../src/altdata/"]
case status of
MakeFailure e -> mapM_ putStrLn e >> putStrLn "failed"
MakeSuccess _ o -> do {
; m_v <- dynload o ["../api"] [] "resource_dyn"
; makeCleaner o
; case m_v of
LoadFailure _ -> putStrLn "didn't load"
LoadSuccess _ v -> putStrLn $ (function v)
}

View File

@ -0,0 +1,8 @@
../Plugin.in:18:
Couldn't match `Dynamic' against `(t, t1)'
Expected type: Dynamic
Inferred type: (t, t1)
In the definition of `resource_dyn':
resource_dyn = (typeOf v, unsafeCoerce v)
failed

View File

@ -0,0 +1,7 @@
../Plugin.in:18:15:
Couldn't match `Dynamic' against `(a, b)'
Expected type: Dynamic
Inferred type: (a, b)
In the definition of `resource_dyn': resource_dyn = (typeOf v, unsafeCoerce v)
failed

View File

@ -0,0 +1,7 @@
../Plugin.in:18:15:
Couldn't match `Dynamic' against `(a, b)'
Expected type: Dynamic
Inferred type: (a, b)
In the definition of `resource_dyn': resource_dyn = (typeOf v, unsafeCoerce v)
failed