[Haskell-cafe] Start GHCI with a static library

Carter Schonwald carter.schonwald at gmail.com
Wed May 13 03:42:32 UTC 2015

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

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 <aditya.siram at gmail.com>

> 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 at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150512/9924f74d/attachment.html>

More information about the Haskell-Cafe mailing list