#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 simonmar):
Both of these sound like they would be easily solved by cabal-install
caching the source tarballs for packages it downloads or builds, and
having a facility for rebuilding a set of packages. I'm afraid I still
don't see how adding anything to the package database will help here.
Suppose there was a cache for package source tarballs somewhere on the
system, and for each installed package you will either find a source
tarball in the cache, or you can get it from Hackage. Now, you know which
package versions are installed, if you know where the cache is you can
find the source for any installed package. Isn't that be enough for all
of the uses listed so far? And all of this can be managed by cabal-
install, with no cooperation from GHC at all.
What's more, it's already there - have a look in `~/.cabal/packages`!
That's only for downloaded packages currently, but it would be possible to
stash the sdist for any package you build in there.
So can't all this be done by cabal-install?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2630#comment:13>
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