Example: Binding C++ to Haskell using the ffi

David Sankel camio at yahoo.com
Sat Mar 1 16:44:29 EST 2003


Sorry, forgot attachment . . . again. :-P

--

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fooble2.tar.bz2
Type: application/octet-stream
Size: 2878 bytes
Desc: fooble2.tar.bz2
Url : http://www.haskell.org//pipermail/ffi/attachments/20030301/05dba3a5/fooble2.tar.obj


More information about the FFI mailing list