Well-Typed are delighted to announce a release preview of hs-bindgen, a tool
for automatic Haskell binding generation from C header files. We hope to invite
some feedback on this initial release and then publish the first “official”
version 0.1 in a few weeks. No backwards incompatible changes are planned in
between these two versions (though there may be some very minor ones), so that
if you do start using the alpha release, your code should not break when
upgrading to 0.1.
This blog post will be a brief overview of what hs-bindgen can do for you,
as well as a summary of the status of the project. You will find links for
further reading at the very end, the most important of which is probably the
(draft) manual. The
hs-bindgen repository also contains a number of partial
example bindings,
including one for rpm; the
hs-bindgen nix tutorial
includes one further partial example set of bindings, for
wlroots.