[commit: Cabal] master: Adapt to using the bundled ReadP (0745ffd)
Ian Lynagh
igloo at earth.li
Fri Jun 24 01:51:43 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/0745ffd6d87de6a93a85ca8c33332713776b5a99
>---------------------------------------------------------------
commit 0745ffd6d87de6a93a85ca8c33332713776b5a99
Author: Duncan Coutts <duncan at haskell.org>
Date: Mon Mar 10 23:36:09 2008 +0000
Adapt to using the bundled ReadP
+1 for using the same version of the ReadP lib everywhere,
previously we would only have noticed this type error with nhc98.
>---------------------------------------------------------------
cabal-install/Hackage/ParseUtils.hs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cabal-install/Hackage/ParseUtils.hs b/cabal-install/Hackage/ParseUtils.hs
index 8e621ab..d518488 100644
--- a/cabal-install/Hackage/ParseUtils.hs
+++ b/cabal-install/Hackage/ParseUtils.hs
@@ -20,7 +20,7 @@ showPError err = let (ml,msg) = locatedErrorMsg err
-readPToMaybe :: ReadP r a -> String -> Maybe a
+readPToMaybe :: ReadP a a -> String -> Maybe a
readPToMaybe p str = listToMaybe [ r | (r,s) <- readP_to_S p str, all isSpace s ]
ignoreWarnings :: ParseResult a -> ParseResult a
More information about the Cvs-libraries
mailing list