
29 Jun
2004
29 Jun
'04
12:44 p.m.
I'd like to make Haskell bindings for some C library and I'm wondering if someone was/is thinking about writing Haskell support for SWIG or the present Haskell tools provide better route for such a task(s)?
I think the general feeling is that your best bets are to use the raw ffi or to use one of the existing preprocessors. hsc2hs is probably the most popular approach these days and was used for most of the libraries that come with ghc, hugs, etc. You can get more information about tools from this page: http://www.reid-consulting-uk.ltd.uk/docs/ffi.html -- Alastair Reid