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

[ bsd3, development, program ] [ Propose Tags ] [ Report a vulnerability ]

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 http://www.haskell.org/ghc/docs/latest/html/users_guide/hsc2hs.html.

Downloads

Maintainer's Corner

Package maintainers

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
Dependencies base (>=4 && <5), containers (>=0.2 && <0.5), directory (>=1 && <1.2), process (>=1 && <1.2) [details]
License BSD-3-Clause
Copyright 2000, Marcin Kowalczyk
Author Marcin Kowalczyk <qrczak@knm.org.pl>
Maintainer cvs-fptools@haskell.org
Category Development
Uploaded by ThomasDuBuisson at 2012-08-15T16:42:29Z
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 56632 total (340 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 2016-12-24 [all 7 reports]