hsc2hs: A preprocessor that helps with writing Haskell bindings to C code

[ bsd3, development, program ] [ Propose Tags ]

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 0.67.20061107, 0.67.20120610, 0.68, 0.68.1, 0.68.2, 0.68.3, 0.68.4
Change log changelog.md
Dependencies base (>=4.12 && <5), 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]
License BSD-3-Clause
Copyright 2000, Marcin Kowalczyk
Author Marcin Kowalczyk <qrczak@knm.org.pl>
Maintainer ghc-devs@haskell.org
Revised Revision 1 made by HerbertValerioRiedel at Thu Oct 18 08:11:25 UTC 2018
Category Development
Bug tracker https://github.com/haskell/hsc2hs/issues
Source repo head: git clone https://github.com/haskell/hsc2hs.git
Uploaded by HerbertValerioRiedel at Sun Sep 23 22:24:47 UTC 2018
Distributions NixOS:0.68.4
Executables hsc2hs
Downloads 8790 total (234 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2018-09-23 [all 2 reports]
Hackage Matrix CI

Flags

NameDescriptionDefaultType
in-ghc-tree

Are we in a GHC tree?

DisabledManual

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

Downloads

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