Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal On branch : master
http://hackage.haskell.org/trac/ghc/changeset/03cd0c96e688afafb114a4c771de276e705cff9a >--------------------------------------------------------------- commit 03cd0c96e688afafb114a4c771de276e705cff9a Author: Duncan Coutts <[email protected]> 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 03cd0c96e688afafb114a4c771de276e705cff9a _______________________________________________ Cvs-libraries mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-libraries
