#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            |      Milestone:  _|_             
Component:  GHC API           |        Version:  6.9             
 Severity:  normal            |     Resolution:                  
 Keywords:                    |     Difficulty:  Unknown         
 Testcase:                    |   Architecture:  Unknown/Multiple
       Os:  Unknown/Multiple  |  
------------------------------+---------------------------------------------
Comment (by claus):

 I was of course thinking of a future HaRe/Ghc, but if you dislike vague
 future references, here are two simple use cases:

 (a) just last week, I wanted to trace the import hierarchies of my 6.8.3
 installation, for which I don't have sources

 (b) even haddock needs package sources long enough to create its
 `*.haddock` files, and if any of the dependencies was installed without
 being haddocked, I need to be able to remedy that

 In cases like (a), I'd like to be able to install the package sources
 once, and then for an import tracer to be able to look up the correct
 package sources whenever there are cross-package references in the code.
 In cases like (b), I'd like to be able to add `.haddock` files to
 installed packages without having to worry about getting the right
 sources, because the right sources were installed with the package.

 I'm not thinking of anything complex yet, for starters just: "the local
 sources for this package are in this directory: `<dir>`" or "local sources
 for this package have not (yet) been installed" would help. Then the tools
 would have to deal with those sources, and with associating them with the
 binary packages, but at least the tools would be able to find the sources
 easily.

 For Ghc Api clients like Ghc, I'd hope that extracting the source dirs
 from the package database, adding them to the import path and asking for
 `-fforce-recomp` would be sufficient, or that `-fforce-recomp` would look
 up the sources itself, but that might be optimistic?-)

 I'm not sure whether it would be sufficient, but is there any reason not
 to have a `src-dirs` field in installed packages descriptions?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2630#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to