@hackage / hsc2hs

A preprocessor that helps with writing Haskell bindings to C code

0.67.20061107

About

Metadata

  • Last updated , by HerbertValerioRiedel
  • License BSD-3-Clause
  • Categories Development
  • Maintained by: cvs-fptools@haskell.org

  • Lottery factor: 0

Links

Installation

This package uses the Custom cabal build type

Readme

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.orgghcdocslatesthtmlusers_guide/hsc2hs.html