[Haskell-cafe] Run time module definition file location information?
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.
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.
More information about the Haskell-Cafe