[commit: Cabal] master: Switch DependencyResolver to return Progress and String errors (47bca0b)

Ian Lynagh igloo at earth.li
Fri Jun 24 01:54:21 CEST 2011


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

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/47bca0b4ffc4e09cc2627e2bb9f2acd8cf1b995e

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

commit 47bca0b4ffc4e09cc2627e2bb9f2acd8cf1b995e
Author: Duncan Coutts <duncan at haskell.org>
Date:   Thu May 29 20:48:49 2008 +0000

    Switch DependencyResolver to return Progress and String errors
    rather than Either and structured error type [Dependency]. The reason
    we cannot use that as a structured error type any more is because
    missing dependencies is not the only failure reason. There are
    several reasons, several of which are pretty complex. For now we'll
    have to do with a human readable message. Perhaps we may be able to
    find a common structured type that the different dep resolvers can
    all agree on. I'm not hopeful however as error reporting seems to be
    closely tied to the dep resolution approach.

 cabal-install/Hackage/Dependency.hs                |   19 +++++++++-------
 cabal-install/Hackage/Dependency/Bogus.hs          |    9 +++++--
 cabal-install/Hackage/Dependency/Naive.hs          |   11 ++++++---
 cabal-install/Hackage/Dependency/TopDown.hs        |   10 +++-----
 .../Hackage/Dependency/TopDown/Constraints.hs      |    4 +-
 cabal-install/Hackage/Dependency/Types.hs          |    4 +--
 cabal-install/Hackage/Fetch.hs                     |    2 +-
 cabal-install/Hackage/Install.hs                   |   23 ++++---------------
 8 files changed, 37 insertions(+), 45 deletions(-)


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

    git show 47bca0b4ffc4e09cc2627e2bb9f2acd8cf1b995e



More information about the Cvs-libraries mailing list