Export through FFI Haskell List to C array (by MarshalAlloc)
David Lo
davidlo.mail at gmail.com
Tue Nov 9 09:46:05 EST 2004
Dear all,
Anyone has ever tried exporting Haskell list to C array ? I read in
the FFI for MarshalAlloc, it is mentioned that Haskell lists are
typically passed as C arrays to C functions.
However, how can we do that ? I have a list of Int (i.e. [Int]) which
I would like to pass as int[] in C.
Please kindly advise how to proceed.
Best Regards,
David Lo
More information about the Glasgow-haskell-users
mailing list