I have a c library that I would like to provide for the FFI interface. Itβs easy enough, but I canβt figure out how to get the package right. It would be nice to just be able to
cabal install librarybindings
and it will automatically create it using gcc, generate the .o file and include it in the distribution. I can compile the package right now, but when you go to build the executable using the bindings, you must explicitly pass the ghc .o file on the command line. Ugh.
haskell ghc cabal
Mike izbicki
source share