The hsc2hs package

[ Tags: 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
Change log
Dependencies base (==4.*), containers (>=0.2 && <0.6), directory (>=1 && <1.4), filepath (>=1 && <1.5), process (>=1.1 && <1.7) [details]
License BSD3
Copyright 2000, Marcin Kowalczyk
Author Marcin Kowalczyk <>
Category Development
Bug tracker
Source repository head: git clone
Uploaded Wed Apr 26 17:03:49 UTC 2017 by HerbertValerioRiedel
Distributions NixOS:0.68.2
Executables hsc2hs
Downloads 5221 total (617 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2017-04-26 [all 2 reports]
Hackage Matrix CI


Maintainer's Corner

For package maintainers and hackage trustees