
9 Nov
2004
9 Nov
'04
9:46 a.m.
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