C2hs - Free Software Directory

Free Software Foundation!

Join now


From Free Software Directory
Jump to: navigation,


'c2hs' is an interface generator that simplifies the development of Haskell bindings to C libraries. It processes existing C header files that determine data layout and function signatures on the C side in conjunction with Haskell modules that specify Haskell-side type signatures and marshaling details. Hooks embedded in the Haskell code signal access to C structures and functions; they are expanded by the interfacing tool in dependence on information from the corresponding C header file.


User tutorial available in HTML format from http://www.cse.unsw.edu.au/~chak/haskell/c2hs/docu/c2hs.html

Related Projects


LicenseVerified byVerified onNotes
GPLv2orlaterJanet Casey8 August 2005

Leaders and contributors

Manuel M T Chakravarty Maintainer
See the AUTHORS file in the distribution for a complete list Contributor

Resources and communication

Audience Resource type URI
Bug Tracking,Developer,Support E-mail mailto:c2hs@haskell.org

Software prerequisites

Kind Description
Source requirement Cabal 1.0.1 or later (1.0 does not work)
Required to use ghc 6.0 or later

This entry (in part or in whole) was last reviewed on 7 January 2008.


Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.

Personal tools