You should be able to find information on this in the haskell wiki
(www.haskell.org). Searching for foreign will probably bring it up.
You'll probably end up having to link a static library - GHC doesn't
yet produce dynamic libraries, though there is work in that area going
on right now. Look for the Industrial Haskell Group blog for more.
On Mon, Jul 27, 2009 at 2:46 AM, Thomas Davietom.da...@gmail.com wrote:
Hiya all,
I'm trying to build a library that can be called from C code. The ghc
manual implies that this can be done, but does not specify the compiler
options that I need to throw at it, and into which files I should put
initialisation/end routines. Does anyone know the magic I need to invoke to
get ghc to produce for me (a) a header file, (b) preferably a dynamic
library, put a static one if all else fails.
Thanks
Tom Davie
___
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell
___
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell