c2hs documentation: http://blog.ezyang.com/2010/06/the-haskell-preprocessor-hierarchy/ https://github.com/haskell/c2hs/wiki/Implementation-of-Haskell-Binding-Modules Good libraries using c2hs: https://github.com/vmchale/libarchive https://github.com/deech/fltkhs