[GHC] #2630: installed packages should have a src-dirs field,
for access to optionally installed sources
GHC
trac at galois.com
Sun Sep 28 09:08:53 EDT 2008
#2630: installed packages should have a src-dirs field, for access to optionally
installed sources
--------------------------------+-------------------------------------------
Reporter: claus | Owner:
Type: feature request | Status: new
Priority: normal | Component: GHC API
Version: 6.9 | Severity: normal
Keywords: | Testcase:
Architecture: Unknown | Os: Unknown
--------------------------------+-------------------------------------------
In a typical ghc+packages installation, there are no Haskell sources. That
makes life difficult for source-code-based tools, such as Haddock or HaRe
(as far as I can see from `--show-iface` output, not even the import
hierarchy is visible anymore?).
(1) It would be useful if Ghc Api clients and Ghc users could easily find
the matching source for installed packages, via a `src-dirs` field in the
installed package description (if field is empty, no source has been
installed).
(2) It would be useful if matching sources could easily be added for
installed packages. This would require editing the package description.
Should there be an `edit` command for `ghc-pkg`?
(3) An alternative to a `src-dirs` field would be to install sources in a
separate source-package database, as long as it is easy to find the source
from the binary package.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2630>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list