6 Jun
2003
6 Jun
'03
5:22 p.m.
Martin Norbäck wrote:
I am doing some wrappers for c functions, and I need to access defines, enums, and structs. [...]
Have a look at hsc2hs: http://haskell.org/ghc/docs/latest/html/users_guide/hsc2hs.html The hierachical libraries contain a lot of examples. But note that the generated Haskell code is *not* portable across platforms, so you have to ship your *.hsc files if you want that. Cheers, S.