#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
       Os:  Unknown          |  
-----------------------------+----------------------------------------------
Comment (by claus):

 Replying to [comment:1 simonmar]:
 > Sources aren't enough for most uses - you also need the .cabal file, and
 you might also need other package bits.  In short, you really need the
 whole Cabal sdist to make any sense of the sources.

 Oh, bother. You're right, of course.

 > Perhaps the right thing is to include the URL from which you can
 download the package sources?  cabal-install could automatically set the
 field, for example.

 .cabal itself already has a `package-url` field. What I was hoping for was
 the actual locally available source corresponding to an installed package
 - the one that a source-based tool might need to find (without going
 online) if interface files are not enough. There is a slight conflict of
 interests here, between wanting a pure sdist from which other variations
 of the package could be recreated, and wanting a pre-configured sdist that
 exactly matches the installed package. Perhaps pointing to a locally
 installed sdist, and keeping the configuration in the sdist, might
 suffice.

 Btw, I've filed a corresponding
 [http://hackage.haskell.org/trac/hackage/ticket/364 cabal ticket], as
 well, since cabal and ghc-pkg probably need to coordinate on this one (one
 providing the field, the other filling it).

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2630#comment:2>
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