I'm trying to package up an ffi library with cabal. Compiling a module with the library works and runs fine, but I get an unknown symbol error in one of the extra-libraries dependencies when loading/running in ghci.
I know that people recommend compiling a separate shared library for ghci, like in this question: linking extra libraries/objects failed
However, I'm not sure how to rectify this within cabal. Could anybody explain to me what standard practice is in this case?
Thanks!