installed packages should have a src-dirs field, for access to optionally installed sources
|Reported by:||claus||Owned by:|
|Type of failure:||Test Case:|
|Related Tickets:||Differential Rev(s):|
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.