Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.
I'd like to try c2hs. I'm looking at the doc here : https://github.com/haskell/c2hs where they say it's possible to install it via cabal. However how can I run executable from cabal ? I'm used to use cabal to download and build dependencies, but I never ran tool with it.
cabal will automatically run c2hs for files with the extension .chs, you just have to add c2hs to the build-tool-depends
thank you !
but what is chs file ?
it's what c2hs consumes!
yes but what is it supposed to contain ? I suspect it's not a C header
it's all explained here:
was looking at the "usage of c2hs" page
the doc is pretty hard to read in general imo
just ask here if you don't get something
it definitely helps to know how CFFI works in general