C->Haskell simplifies the process of developing Haskell bindings to C libraries by generating an interface. The software generates interfaces that reduce the amount of time and effort necessary to bind C libraries with Haskell.
With hooks embedded in the Haskell code, C->Haskell signals access to C structures and functions, which is then expanded by the interfacing tool. This expansion is dependent on information from the corresponding C header file. One of the noteworthy things about C->Haskell is its lightweight approach, which makes it rather easy to use.
The idea for the tool was developed during the implementation of Gtk+HS, a Haskell binding for the GUI toolkit GTK+. Although this project is no longer under active development, its successor, Gtk2Hs, still relies on C->Haskell.
The generator is implemented using the Compiler Toolkit, particularly the self-optimising lexer and parser combinators of the toolkit. The use of the toolkit successfully simplified the implementation of C->Haskell.
To install C->Haskell, you will need the Glasgow Haskell Compiler installed. Once installed, navigate to the top-level directory, unpack the sources, and run the relevant commands (configure, build, and install).
What’s new in this release of C->Haskell is that it supports GHC 6.4 through to 6.8 and also properly supports OpenBSD and Windows environments. Finally, the documentation has been updated to ensure seamless usage.
Version 0.15.1: N/A