
On Fri, Feb 09, 2007 at 14:23:53 +0200, Yitzchak Gale wrote:
Hi,
I would like to use FFI for the first time. Can someone give me a really, really simple complete example?
I want to be able to take a simple C program and access a function from it in Haskell. A simple example of the other way around would be nice, too, but I don't happen to need that just now.
I started reading the Addendum, but that looks like it would be a lot easier to read if I saw a simple complete example first. Everything I found on the wiki seems way beyond that - maybe I missed it.
I am using GHC. I am not using Windows.
Shameless self-promotion: http://therning.org/magnus/archives/238 /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus.therning@gmail.com http://therning.org/magnus