Import hs-plugins cvs

This commit is contained in:
Don Stewart
2005-04-24 08:51:33 +00:00
commit 887fa59389
494 changed files with 23721 additions and 0 deletions

View File

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

View File

@ -0,0 +1,9 @@
../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 plugin, unsafeCoerce v)
Fail: failed

View File

@ -0,0 +1,8 @@
../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 plugin, unsafeCoerce v)
a.out: failed