[commit: Cabal] master: Remove the resolveDependenciesLocal, implement it via resolveDependencies (b17fa17)
Ian Lynagh
igloo at earth.li
Fri Jun 24 01:52:57 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/b17fa17aae7620bc29f2d2f750ec879ddfec0907
>---------------------------------------------------------------
commit b17fa17aae7620bc29f2d2f750ec879ddfec0907
Author: Duncan Coutts <duncan at haskell.org>
Date: Wed Apr 30 19:33:51 2008 +0000
Remove the resolveDependenciesLocal, implement it via resolveDependencies
The local variant was for the case that we were starting from a package
description rather than a dependency to a named package. In the local
case we not only need to resolve the dependencies of the package but also
to find a flag assignment for the local package. This case crops up in
the resolver normally when we try to satisfy a dependency, we have to
pick a flag assignment for the dependency and resolve its dependencies.
It is annoying to have both entry points, especially as we want the
resolver to be plugable. So instead we define the local package as an
available package, then by resolving a single dependency on exactly the
name and version of the local package then we can get an install plan for
the local package. It also requires generalising installPkg to deal with
the local case.
cabal-install/Hackage/Dependency.hs | 19 --------------
cabal-install/Hackage/Install.hs | 48 +++++++++++++++++++++++++---------
2 files changed, 35 insertions(+), 32 deletions(-)
Diff suppressed because of size. To see it, use:
git show b17fa17aae7620bc29f2d2f750ec879ddfec0907
More information about the Cvs-libraries
mailing list