
adityah,
if the library is cabalized, do cabal configure
--extra-lib-dirs=$PATHtoArchive and assuming you have the right foreign
import code, things should work fine. (or the equivalient .cabal file extra
lib dirs field with can be a relative path within the package). then cabal
repl should also presumably work. if you then wanna use ghci directly, try
invoking cabal repl with the verbose flag (-v) to see how its setting up
ghci.
if your ffi bindings dont work in cabal repl, thats probably valid a bug
report. (at least on some platforms)
On Sat, May 2, 2015 at 11:24 AM, aditya siram
Hi all, I have a Haskell library I'd like to load up in GHCI along with a statically linked C library (libblah.a) . Is there any way to do this? My Googling only turns up instructions on loading a shared library (libblah.so).
Thanks! -deech
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe