#1463: Module → Package lookup in ghc-pkg?
--------------------------------+-------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.6.1
Severity: normal | Keywords:
Difficulty: Unknown | Os: Unknown
Testcase: | Architecture: Unknown
--------------------------------+-------------------------------------------
Hi all,
I'm writing code for Emacs's haskell-mode, and it's necessary at one point
to be able to find out the package a given module is defined in. The only
way of doing this currently is to call ghc-pkg field <package> exposed-
modules for every package, then building a lookup table of modules to
packages. Could we have one of:
1. A way to batch call ghc-pkg once to fetch the exposed-modules (or any
field, in fact, as we need to fetch haddock-html for each package as well)
for all packages?
2. A way to lookup which package(s) a given module is defined in from
ghc-pkg?
Cheers,
-David House
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1463>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs