[commit: ghc] wip/T16212-fixed, wip/sgraf-no-exnstr: make ghc-pkg shut up (f00b35f)

git at git.haskell.org git at git.haskell.org
Fri Feb 1 05:54:33 UTC 2019


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

On branches: wip/T16212-fixed,wip/sgraf-no-exnstr
Link       : http://ghc.haskell.org/trac/ghc/changeset/f00b35f4ddcc61fb1b1f09854bbbf38934ff0865/ghc

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

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

    make ghc-pkg shut up


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

f00b35f4ddcc61fb1b1f09854bbbf38934ff0865
 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