[ ghc-Bugs-997511 ] Options -no-hs-main -debug cause 'impossible'
to happen
SourceForge.net
noreply at sourceforge.net
Sun Jul 25 08:38:48 EDT 2004
Bugs item #997511, was opened at 2004-07-25 05:38
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=997511&group_id=8032
Category: Compiler (FFI)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Options -no-hs-main -debug cause 'impossible' to happen
Initial Comment:
Here's the command line:
ghc -c ForeignTest.hs -fglasgow-exts -package text
-no-hs-main
And here's the module:
-----------------------
module ForeignTest (reduce) where
import Foreign.StablePtr
import GensDef
import GensCoreIO
foreign export ccall "reduce"
reduceMain ::
StablePtr LookupFun -> StablePtr ReduceFun -> IO
(StablePtr Environment)
reduceMain _ _ = newStablePtr emptyEnv
------------------------
Let me know if you need the modules GensDef and
GensCoreIO imported from above. I expect the problem is
more generic than that.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=997511&group_id=8032
More information about the Glasgow-haskell-bugs
mailing list