[Haskell-cafe] Accessing to a Haskell type in C

2011-03-30 Thread Yves Parès
Hello, To access a haskell type from C code, do we have to make this type instance of Storable (and so to also define an homomorph structure on the C side), or does FFI specifies some C function to enable C code to access the fields, or even some GHC-specific functions? (Even if I'd prefer a

Re: [Haskell-cafe] Accessing to a Haskell type in C

2011-03-30 Thread Antoine Latter
On Wed, Mar 30, 2011 at 5:27 PM, Yves Parès limestr...@gmail.com wrote: Hello, To access a haskell type from C code, do we have to make this type instance of Storable (and so to also define an homomorph structure on the C side), or does FFI specifies some C function to enable C code to access