Greetings -
Could someone instruct me on (or point me to) the correct ghc
command line
for calling haskell from C?
From the documentation, it seems like "ghc -fglasgow-exts
-no-hs-main main.c
foo.hs" should work, but
that still gives me a multiple definition of "main".
I'm running
I'm guessing I didn't do the b1 build right. The compiler it
generated
builds, but doesn't even run. Do I need to add the
unregistered options
throughout the build, or just in the library?
Just the libraries and the RTS in b1, and the compiler in b2. You can check
that things are
Simon Marlow writes:
Could someone instruct me on (or point me to) the correct ghc
command line for calling haskell from C?
...
You can use ghc just like you would use gcc to compile up
your C program,
then use ghc again to link the whole program with the Haskell
module(s).