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

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

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.

Properties

Versions0.67.20061107, 0.67.20120610, 0.68, 0.68.1, 0.68.2, 0.68.3, 0.68.4, 0.68.4
Change logchangelog.md
Dependenciesbase (>=4.3.0 && <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]
LicenseBSD-3-Clause
Copyright2000, Marcin Kowalczyk
AuthorMarcin Kowalczyk <qrczak@knm.org.pl>
Maintainerghc-devs@haskell.org
CategoryDevelopment
Bug trackerhttps://github.com/haskell/hsc2hs/issues
Source repositoryhead: git clone https://github.com/haskell/hsc2hs.git
Executableshsc2hs
UploadedSun Sep 23 22:24:04 UTC 2018 by HerbertValerioRiedel

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

Maintainers' corner

For package maintainers and hackage trustees