[Haskell] Building a library for C users
jgbailey at gmail.com
Tue Jul 28 12:19:39 EDT 2009
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 Davie<tom.davie at 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.
> Tom Davie
> Haskell mailing list
> Haskell at haskell.org
More information about the Haskell