Rafael Martinez Torres wrote: > Done. Upgrading ghc-6.0.1 solves it. Why not 6.2.2? 6.0.1 is relatively old... > Still waiting for answer C) on how marshalling C structures... Perhaps a look at http://www.reid-consulting-uk.ltd.uk/docs/ffi.html and probably http://haskell.org/ghc/docs/latest/html/users_guide/hsc2hs.html might help. Cheers, S.