[Haskell-cafe] interfacing to C library - c2hs/hsc2hs/GreenCard?
haskell-cafe at brisammon.fastmail.fm
Mon Jan 23 03:38:19 UTC 2017
I'd like to write a haskell app that calls a C library that I wrote. This is my first time trying to do something like this. What would people here recommend I start with? c2hs? hsc2hs? GreenCard? One of the newer tools like bindings-dsl or inline-c?
It's a relatively small library -- a handful of structs and a bunch of functions that take them as input, often returning another as output, and ultimately doing some libcurl to exchange data with websites.
Also, can anyone recommend some documentation to read, that's applicable to GHC 8? A lot of the stuff I found on google predates GHC 8 (and a fair amount predates GHC 7)--not sure if that's likely to be a problem.
More information about the Haskell-Cafe