First, I\'m a Haskell beginner.
I\'m planning integrating Haskell into C for realtime game. Haskell does logic, C does rendering. To do this, I have to pass huge complex
hsc2hs, c→hs, and Green Card all provide automated Haskell⇆C structure peek/poke or marshalling. I would recommend their use over manually determining sizes and offsets and using pointer manipulation in Haskell, although that's possible too.
hsc2hs
with some C magic.