[commit: ghc] wip/ghc-pkg-shut-up: make ghc-pkg shut up (ee2bb6e)

git at git.haskell.org git at git.haskell.org
Sun Mar 31 15:09:45 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/ghc-pkg-shut-up
Link       : http://ghc.haskell.org/trac/ghc/changeset/ee2bb6e84ca92706e07bf34b9847288f4dd3e866/ghc

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

commit ee2bb6e84ca92706e07bf34b9847288f4dd3e866
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date:   Wed Jan 23 10:59:38 2019 +0800

    make ghc-pkg shut up


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

ee2bb6e84ca92706e07bf34b9847288f4dd3e866
 utils/ghc-pkg/Main.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs
index 8b7655b..534bbac 100644
--- a/utils/ghc-pkg/Main.hs
+++ b/utils/ghc-pkg/Main.hs
@@ -1822,7 +1822,7 @@ liftIO k = V (k >>= \a -> return (a,[],[]))
 reportValidateErrors :: Verbosity -> [ValidateError] -> [ValidateWarning]
                      -> String -> Maybe Force -> IO Bool
 reportValidateErrors verbosity es ws prefix mb_force = do
-  mapM_ (warn . (prefix++)) ws
+  when (verbosity >= Normal) $ mapM_ (warn . (prefix++)) ws
   oks <- mapM report es
   return (and oks)
   where



More information about the ghc-commits mailing list