FFI tutorial??

Wojciech Moczydlowski, Jr khaliff@astercity.net
Sun, 11 Mar 2001 17:43:28 +0100 (CET)

On Sat, 10 Mar 2001, Ronald Legere wrote:

> Does anyone know of a tutorial introduction to the
> FFI? How does one go about getting started with this
> thing? Any simple examples? I just want to be able
> to do simple things (mostly access a c library from
> haskell... ok maybe not trivial :) )  I would be
> happy if I could just call c programs with simple
> types and pointers (no way am I going to figure out 
> struct alignment! ). 
>    I have had some success with Java Native methods, 
> so I believe such things can be done :0
> Cheers!

Try KDirect - it is relatively simple and the tutorial is present. On the 
other hand, it isn't very powerful - yet it may satisfy you.


Wojciech Moczydlowski, Jr