[Haskell-cafe] ANNOUNCE: c2hs 0.16.2

Duncan Coutts duncan.coutts at googlemail.com
Fri Apr 23 06:53:21 EDT 2010


All,

c2hs version 0.16.2 is out and is available from hackage
http://hackage.haskell.org/package/c2hs

The only significant change in this release is that it works with
ghc-6.12.

Note that it is not currently possible to bind to C functions that use
"long double" as the corresponding Haskell type (CLDouble) is not
provided by the version of the base library that comes with ghc-6.12.
See ghc ticket http://hackage.haskell.org/trac/ghc/ticket/3353


What is c2hs
============

The c2hs tool assists in the development of Haskell bindings to C
libraries. It extracts interface information from C header files and
generates Haskell code with foreign imports and marshaling.

The major advantages of using c2hs compared to writing foreign imports
by hand (or using hsc2hs) are:

      * Cross-language type safety:
                C functions are imported with the correct Haskell types.

      * Saves time:
                boilerplate marshaling code is generated.

Links
=====

Home page:
http://www.cse.unsw.edu.au/~chak/haskell/c2hs/

Bug tracker:
http://hackage.haskell.org/trac/c2hs/


Duncan



More information about the Haskell-Cafe mailing list