Export through FFI Haskell List to C array (by MarshalAlloc)
davidlo.mail at gmail.com
Tue Nov 9 09:46:05 EST 2004
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.
More information about the Glasgow-haskell-users