Skip to content

installed packages should have a src-dirs field, for access to optionally installed sources

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.

Trac metadata
Trac field Value
Version 6.9
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHC API
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information