[Haskell-cafe] SWIG with Haskell ?

Mark Wassell mwassell at bigpond.net.au
Mon May 21 04:50:50 EDT 2007


Hello,

Has anyone got any pointers on using SWIG with Haskell to integrate a 
C++ library? For the library there other language bindings, so I am in a 
position to leverage off these.
 
In general what are the particular issues with C++ and Haskell. One 
obvious one is management of object lifecycle - making sure the object 
stays around long enough but doesn't out stay its welcome. Is using 
ForeignPtr sufficient?

Cheers

Mark


More information about the Haskell-Cafe mailing list