<div dir="ltr">adityah,<div>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.</div><div><br></div><div>if your ffi bindings dont work in cabal repl, thats probably valid a bug report.  (at least on some platforms)</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 2, 2015 at 11:24 AM, aditya siram <span dir="ltr"><<a href="mailto:aditya.siram@gmail.com" target="_blank">aditya.siram@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi all,<br></div>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).<br><br></div>Thanks!<br></div>-deech<br></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>