Automatically generate Haskell bindings from C header files
Haskell
109
3,899 commits
updated Sep 23, 2026
hs-bindgenhs-bindgen is a Haskell library that automatically generates Haskell FFI
bindings from C header files.
[!WARNING] This project has not had an official release yet. There is a wide variety of C (and C preprocessor) code in the world, so we are currently soliciting feedback prior to the first official release. Please try it out! If something breaks, please check the issues to see if the problem is already known, and open an issue if not.
Check the releases (RSS) for release information. A Hackage package will be made available from the first official release.
hs-bindgen
by Edsko de Vries (27 March 2026)hs-bindgen 0.1-alpha release
by Edsko de Vries (10 February 2026)We test hs-bindgen with various C projects, and we include some examples in
this repository. Please note that these are used for testing and are not
meant to be complete. See the examples README for
details.
Examples include:
hs-bindgen, a utility that automatically generates Haskell
bindings from C headershs-bindgen-runtime, a library that provides runtime
support for code generated by hs-bindgenhs-bindgen-test-runtime, a library for testing
bindings generated by hs-bindgenc-expr-dsl and c-expr-runtime,
a DSL for C macro semanticsdoxygen-parser, a parser
for the XML files generated by the Doxygen CLIlibclang-bindings, a
library that provides bindings for the
LLVM/Clang libclang C APIOur thanks go to those who have contributed to hs-bindgen and supporting
packages with development, bug reports, feature requests, blog posts, etc.,
including:
andromeda-fpaveltrasKrantz98MerivuokkoHaskell
79.5%
C
18.2%
C++
1.5%
Automatically generate Haskell bindings from C header files
Haskell
109
3,899 commits
updated Sep 23, 2026
hs-bindgenhs-bindgen is a Haskell library that automatically generates Haskell FFI
bindings from C header files.
[!WARNING] This project has not had an official release yet. There is a wide variety of C (and C preprocessor) code in the world, so we are currently soliciting feedback prior to the first official release. Please try it out! If something breaks, please check the issues to see if the problem is already known, and open an issue if not.
Check the releases (RSS) for release information. A Hackage package will be made available from the first official release.
hs-bindgen
by Edsko de Vries (27 March 2026)hs-bindgen 0.1-alpha release
by Edsko de Vries (10 February 2026)We test hs-bindgen with various C projects, and we include some examples in
this repository. Please note that these are used for testing and are not
meant to be complete. See the examples README for
details.
Examples include:
hs-bindgen, a utility that automatically generates Haskell
bindings from C headershs-bindgen-runtime, a library that provides runtime
support for code generated by hs-bindgenhs-bindgen-test-runtime, a library for testing
bindings generated by hs-bindgenc-expr-dsl and c-expr-runtime,
a DSL for C macro semanticsdoxygen-parser, a parser
for the XML files generated by the Doxygen CLIlibclang-bindings, a
library that provides bindings for the
LLVM/Clang libclang C APIOur thanks go to those who have contributed to hs-bindgen and supporting
packages with development, bug reports, feature requests, blog posts, etc.,
including:
andromeda-fpaveltrasKrantz98MerivuokkoHaskell
79.5%
C
18.2%
C++
1.5%