hsc2hs: A preprocessor that helps with writing Haskell bindings to C code
The hsc2hs program can be used to automate some parts of the process of writing Haskell bindings to C code. It reads an almost-Haskell source file with embedded special constructs, and outputs a real Haskell file with these constructs processed, based on information taken from some C headers. The extra constructs provide Haskell counterparts of C types, values of C constants, including sizes of C types, and access to fields of C structs.
For more details, see the hsc2hs section in the GHC User's Guide.
|Versions [faq]||0.67.20061107, 0.67.20120610, 0.68, 0.68.1, 0.68.2, 0.68.3, 0.68.4, 0.68.6, 0.68.7|
|Dependencies||base (>=4.3.0 && <4.16), containers (>=0.4.0 && <0.7), directory (>=1.1.0 && <1.4), filepath (>=1.2.0 && <1.5), process (>=1.1.0 && <1.7) [details]|
|Copyright||2000, Marcin Kowalczyk|
|Author||Marcin Kowalczyk <firstname.lastname@example.org>|
|Revised||Revision 1 made by BenGamari at 2021-02-18T16:35:51Z|
|Source repo||head: git clone https://github.com/haskell/hsc2hs.git|
|Uploaded||by HerbertValerioRiedel at 2020-03-25T21:54:53Z|
|Distributions||Arch:0.68.7, LTSHaskell:0.68.7, NixOS:0.68.7, Stackage:0.68.7|
|Downloads||34115 total (941 in the last 30 days)|
|Rating||(no votes yet) [estimated by Bayesian average]|
Docs not available [build log]
Last success reported on 2020-03-26 [all 2 reports]
Are we in a GHC tree?
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
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'.
For package maintainers and hackage trustees