[Haskell-cafe] C Bindings?
gwright at comcast.net
Tue Apr 13 14:11:15 EDT 2004
The Foreign Function Interface (FFI) is your friend for these tasks:
On the haskell.org web page, under "libraries and tools" there are
a number of tools to help you connect your C & haskell programs.
The GreenCard and c->haskell tools seem to be used by a number
Alastair Reid's Guide to Haskell's Foreign Function Interface,
is a good place to start. It has some comparison of the various tools.
On Apr 13, 2004, at 12:56 PM, Russ Lewis wrote:
> Does Haskell have some mechanism that allows it to link to C, or other
> imperative languages?
> I know, you could use the IO Monad to do it...using stdin and stdout
> as pipes to any other program. But is there a way to link Haskell
> into a C program?
> Thanks again for the help for a newbie...
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe