[commit: Cabal] master: Adapt to using the bundled ReadP (63667da)
Paolo Capriotti
p.capriotti at gmail.com
Tue May 8 00:12:21 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/63667da30bb3de4ac95ac319f3dbf6bab9304699
>---------------------------------------------------------------
commit 63667da30bb3de4ac95ac319f3dbf6bab9304699
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