[commit: Cabal] master: Use (\_ -> []) instead of mempty to avoid funky Monoid instance (858f1c8)
Ian Lynagh
igloo at earth.li
Fri Jun 24 02:00:44 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/858f1c86fc1034fb769a1cdf63be9e49069d67b5
>---------------------------------------------------------------
commit 858f1c86fc1034fb769a1cdf63be9e49069d67b5
Author: Duncan Coutts <duncan at haskell.org>
Date: Wed Dec 10 22:31:06 2008 +0000
Use (\_ -> []) instead of mempty to avoid funky Monoid instance
This would let us build with ghc-6.4 or nhc if it were not for other issues.
>---------------------------------------------------------------
cabal-install/Distribution/Client/Setup.hs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cabal-install/Distribution/Client/Setup.hs b/cabal-install/Distribution/Client/Setup.hs
index e44117d..758b38f 100644
--- a/cabal-install/Distribution/Client/Setup.hs
+++ b/cabal-install/Distribution/Client/Setup.hs
@@ -260,7 +260,7 @@ checkCommand = CommandUI {
commandDescription = Nothing,
commandUsage = \pname -> "Usage: " ++ pname ++ " check\n",
commandDefaultFlags = toFlag normal,
- commandOptions = mempty
+ commandOptions = \_ -> []
}
reportCommand :: CommandUI (Flag Verbosity)
More information about the Cvs-libraries
mailing list