FFI

Simon Marlow simonmar@microsoft.com
Mon, 12 Aug 2002 12:02:20 +0100


> I have one program in haskell that function in C passes two=20
> arrays for one=20
> which adds the two and returns one 3=BA. How I make to import=20
> this function=20
> and to use it in my program? Which is the mapping of the=20
> arrays of haskell=20
> for the C?=20

Perhaps you should take a look at the FFI spec, here:

  http://www.cse.unsw.edu.au/~chak/haskell/ffi/

and the information specific to using GHC with the FFI, here:

  http://www.haskell.org/ghc/docs/latest/html/users_guide/ffi.html

Cheers,
	Simon