c2hs: C->Haskell FFI tool that gives some cross-language type safety
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.
[Skip to Readme]
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
base3 | Enabled | |
regression | Enable regression suite build. | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- c2hs-0.28.8.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.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, 0.26.1, 0.26.2, 0.27.1, 0.28.1, 0.28.2, 0.28.3, 0.28.4, 0.28.5, 0.28.6, 0.28.7, 0.28.8 (info) |
---|---|
Change log | ChangeLog |
Dependencies | array, base (>=2 && <5), bytestring, containers, directory, dlist, fail, filepath, language-c (>=0.7.1 && <0.11), pretty, process, shelly (>=1.9.0), text, yaml (>=0.8) [details] |
Tested with | ghc ==8.0.1, ghc ==8.10.1 |
License | GPL-2.0-only |
Copyright | Copyright (c) 1999-2007 Manuel M T Chakravarty 2005-2013 Duncan Coutts 2008 Benedikt Huber |
Author | Manuel M T Chakravarty |
Maintainer | chak@cse.unsw.edu.au, duncan@community.haskell.org, ian@skybluetrades.net, aditya.siram@gmail.com |
Revised | Revision 3 made by Bodigrim at 2024-11-17T23:17:56Z |
Category | Development |
Home page | https://github.com/haskell/c2hs |
Bug tracker | https://github.com/haskell/c2hs/issues |
Source repo | head: git clone git://github.com/haskell/c2hs.git |
Uploaded | by deech at 2021-06-13T15:47:59Z |
Distributions | Arch:0.28.8, Debian:0.28.8, Fedora:0.28.8, FreeBSD:0.26.1, LTSHaskell:0.28.8, NixOS:0.28.8, Stackage:0.28.8, openSUSE:0.28.8 |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Executables | regression-suite, c2hs |
Downloads | 64053 total (146 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] All reported builds failed as of 2021-06-13 [all 1 reports] |