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.
Flags
Manual Flags
Name | Description | Default |
---|---|---|
in-ghc-tree | Are we in a GHC tree? | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- hsc2hs-0.68.10.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.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, 0.68.8, 0.68.9, 0.68.10 |
---|---|
Change log | changelog.md |
Dependencies | base (>=4.3.0 && <4.22), containers (>=0.4.0 && <0.8), directory (>=1.1.0 && <1.4), filepath (>=1.2.0 && <1.6), process (>=1.1.0 && <1.7) [details] |
Tested with | ghc ==9.12.0, ghc ==9.10.1, ghc ==9.8.2, ghc ==9.6.6, ghc ==9.4.8, ghc ==9.2.8, ghc ==9.0.2, ghc ==8.10.7, ghc ==8.8.4, ghc ==8.6.5, ghc ==8.4.4, ghc ==8.2.2, ghc ==8.0.2 |
License | BSD-3-Clause |
Copyright | 2000, Marcin Kowalczyk |
Author | Marcin Kowalczyk <qrczak@knm.org.pl> |
Maintainer | ghc-devs@haskell.org |
Revised | Revision 3 made by AndreasAbel at 2024-10-25T06:49:18Z |
Category | Development |
Bug tracker | https://github.com/haskell/hsc2hs/issues |
Source repo | head: git clone https://github.com/haskell/hsc2hs.git |
Uploaded | by BenGamari at 2023-09-20T04:19:56Z |
Distributions | Arch:0.68.8, LTSHaskell:0.68.10, NixOS:0.68.10, Stackage:0.68.10 |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Executables | hsc2hs |
Downloads | 56820 total (296 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] Last success reported on 2023-09-20 [all 1 reports] |