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

Silvio Frischknecht silvio.frischi at gmail.com
Wed Nov 25 15:51:35 UTC 2015


> How can I get a running Haskell program to tell me where it’s looking, in order to satisfy “import …” statements?

Short answer: You can't.

Long answer:
Everything is imported at compile time. GHC for instance usually links
all imports statically. I.e. no files will be opened for the import
statements. The only dynamically linked libraries are libc, posix, ...


Maybe if you clarify what you want to do, I can be more helpful.

Cheers

Silvio


More information about the Haskell-Cafe mailing list