[Haskell-cafe] ANNOUNCE: c2hs 0.16.2

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


c2hs version 0.16.2 is out and is available from hackage

The only significant change in this release is that it works with

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.


Home page:

Bug tracker:


More information about the Haskell-Cafe mailing list