FFI domain specific language, on top of hsc2hs.

Version on this page:1.0.24
LTS Haskell 22.29:1.0.25
Stackage Nightly 2024-07-21:1.0.25
Latest on Hackage:1.0.25

See all snapshots bindings-DSL appears in

BSD-3-Clause licensed by Maurício C. Antunes
Maintained by John Wiegley
This version can be pinned in stack with:bindings-DSL-1.0.24@sha256:1094b5e0f4d9401b2876b0bf20cf0bc9699de5314301939f832f493f3ade8f29,1507

Module documentation for 1.0.24

This is a set of macros to be used when writing Haskell FFI. They were designed to be able to fully describe C interfaces, so that hsc2hs can extract from them all Haskell code needed to mimic such interfaces. All Haskell names used are automatically derived from C names, structures are mapped to Haskell instances of Storable, and there are also macros you can use with C code to help write bindings to inline functions or macro functions. Documentation is available at package homepage:

The extra module Bindings.Utilities will contain tools that may be convenient when working with FFI.