what is the path to a particular module?

Thomas DuBuisson thomas.dubuisson at gmail.com
Sat Aug 15 13:18:33 EDT 2009


> Is there a way from GHCi to discover the path to a particular module that
> you have imported or loaded?

If you do "ghci -v4" it will print out all the exposed modules right
below the package that exposes them and the directory the package is
in.  You could just copy/paste this text and do a simple text search
in your edit or choice.  I don't know how to get it to print this
information when you load a module, but GHCi is easy enough to read so
perhaps you could make a patch and send it in!

Thomas


More information about the Glasgow-haskell-users mailing list