A preprocessor that helps with writing Haskell bindings to C code
|Latest on Hackage:||0.68.3|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
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.
Support GHC 8.2.1
hsc_alignmentmacro work in clang (D3346)
Track column numbers to improve GHC's caret diagnostic display (#13388)
Fix type signature of generated
maintest function to avoid C compiler warnings about unused
argvfunction parameters during feature testing.
Double-escape paths used to build call to