Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/df953acfb9247d30bed70b5d3d1499570c6378f9

>---------------------------------------------------------------

commit df953acfb9247d30bed70b5d3d1499570c6378f9
Author: Duncan Coutts <[email protected]>
Date:   Mon Jun 2 18:24:10 2008 +0000

    Change the DependencyResolver type to take a per-package version pref
    And add a few global package version pref policies and use them in
    ordinary install and upgrade. For install we use a policy that says
    that we prefer the latest version of a package that we specifically
    request and prefer the installed version of any other package. For
    upgrade we simple always prefer the latest version. One can imageine
    other policies where we prefer the latest version for only some
    interesting subset of packages and installed otherwise.
    No resolvers actually make use of this preference yet.

 cabal-install/Hackage/Dependency.hs               |   71 +++++++++++++++++---
 cabal-install/Hackage/Dependency/Bogus.hs         |    2 +-
 cabal-install/Hackage/Dependency/Naive.hs         |    2 +-
 cabal-install/Hackage/Dependency/TopDown.hs       |    8 ++-
 cabal-install/Hackage/Dependency/TopDown/Types.hs |    2 -
 cabal-install/Hackage/Dependency/Types.hs         |   13 ++++
 cabal-install/Hackage/Fetch.hs                    |    7 +-
 cabal-install/Hackage/Install.hs                  |   11 ++-
 8 files changed, 91 insertions(+), 25 deletions(-)


Diff suppressed because of size. To see it, use:

    git show df953acfb9247d30bed70b5d3d1499570c6378f9

_______________________________________________
Cvs-libraries mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-libraries

Reply via email to