Example: Binding C++ to Haskell using the ffi

David Sankel camio at yahoo.com
Sat Mar 1 16:40:42 EST 2003


Here is some example code doing just that.  It uses
ghc.

Questions:

Can one think of better ways to interface generic c++
libraries to Haskell?  What do you think of the ->>
member function operator?

for the ffi people:

Has any though gone into cplusplus?  If so, how would
it interface?  Would stubs on the c++ side be
generated or would it use the code directly.

Later,

David J. Sankel



More information about the FFI mailing list