bindings-DSL

FFI domain specific language, on top of hsc2hs. https://github.com/jwiegley/bindings-dsl/wiki

Version on this page:1.0.23
LTS Haskell 9.5:1.0.23
Stackage Nightly 2017-09-20:1.0.23
Latest on Hackage:1.0.23
BSD3 licensed by MaurĂ­cio C. Antunes
Maintained by John Wiegley

Module documentation for 1.0.23

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:

https://github.com/jwiegley/bindings-dsl/wiki

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

Changes

Changes in 1.0.19

* Add a change log.

* Support unsafe calls with experimental #ccall_unsafe.

Changes in 1.0.18 (This version has a bug. Marked as such in Hackage)

* Introduce a silly bug to solve a problem that does not exist.

Changes in 1.0.17

* Add Bindings.Utilities module for general utilities.

* Change repository to git.

* Don't underestimate size of field arrays with dimension >= 2.

* Change #callback to #callback_t.

* Keep source of bindings-* libraries with bindings-DSL.

* Add examples used in tutorial.

Changes in 1.0.16

* Use correct value for Storable alignment instead of copying sizeOf.

Changes in 1.0.15

* New hsc2hs template doesn't include some headers, so include it ourselves.

Changes in 1.0.14

* Add functions to get pointers to fields from pointers to structures.
comments powered byDisqus