[Haskell-cafe] FFI basics

Mirko Rahn rahn at ira.uka.de
Fri Feb 16 04:59:25 EST 2007


> I want to be able to take a simple C program and
> access a function from it in Haskell. A simple example

The attachement is a file where the Haskell program first creates the 
C-source, compiles it to an shared object file, loads the object using 
the dynamic linker and uses the just constructed function.

Regards,

-- 
-- Mirko Rahn -- Tel +49-721 608 7504 --
--- http://liinwww.ira.uka.de/~rahn/ ---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DL.hs
Type: text/x-haskell
Size: 2149 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20070216/0dfcdb54/DL.bin


More information about the Haskell-Cafe mailing list