[Haskell-cafe] how to write an haskell binding

minh thu noteed at gmail.com
Mon Jun 26 16:46:06 EDT 2006


hopefully (well, i liked the discussions) this message will not spawn
so much messages :)

i'd like to know if there exist some general guidelines/information
about writing an haskell (or is it *a* haskell ?) binding for a c or a
c++ library.

i worry about :
* implementation tools : use tools like c2hs or others, or do that bare hands
* haskell idioms/usage : make good use of monads, type classes and
other haskell related things
* for c++, is it better to first write a c api for the c++ code before
writing the binding
* maybe advice about the c api knowing there will be haskell binding
* any thing i forgot

thanks a lot,

More information about the Haskell-Cafe mailing list