The c2hs package

[Tags: gpl, program]

C->Haskell 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. Unlike writing foreign imports by hand (or using hsc2hs), this ensures that C functions are imported with the correct Haskell types.


Versions0.15.0, 0.15.1, 0.16.0, 0.16.2, 0.16.3, 0.16.4, 0.16.5, 0.16.6, 0.17.1, 0.17.2, 0.18.1, 0.18.2, 0.19.1, 0.20.1, 0.21.1, 0.22.1, 0.23.1, 0.24.1, 0.25.1, 0.25.2
Change logChangeLog
Dependenciesarray, base, containers, directory, dlist, filepath, language-c (>=0.4.7 && <0.5), pretty, process, shelly (>=1.0), text, yaml (>=0.8)
CopyrightCopyright (c) 1999-2007 Manuel M T Chakravarty 2005-2013 Duncan Coutts 2008 Benedikt Huber
AuthorManuel M T Chakravarty,,
Home page
Bug tracker
Source repositoryhead: git clone git://
Executablesregression-suite, c2hs
UploadedTue Mar 31 13:18:26 UTC 2015 by IanRoss
DistributionsDebian:0.17.2, FreeBSD:0.17.2, LTSHaskell:0.25.2, NixOS:0.25.2, Stackage:0.25.2
Downloads13340 total (626 in last 30 days)
StatusDocs not available [build log]
Last success reported on 2015-05-18 [all 2 reports]


regressionEnable regression suite build.Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainers' corner

For package maintainers and hackage trustees