[Haskell-cafe] Run time module definition file location information?

David Kraeutmann kane at kane.cx
Wed Nov 25 15:42:53 UTC 2015

Imports are resolved at compile time and linked statically into the
executable unless you tell GHC to use dynamic linking. In that case, `ldd`
will tell you the files it's linked against. In any case, that information
is unavailable at runtime.

Note that generally static linking is preferred over dynamic linking.
On Nov 25, 2015 3:12 PM, "David Banas" <capn.freako at gmail.com> wrote:

> Hi all,
> How can I get a running Haskell program to tell me where it’s looking, in
> order to satisfy “import …” statements?
> Thanks,
> -db
> _______________________________________________
> 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/20151125/d1edce9f/attachment.html>

More information about the Haskell-Cafe mailing list