[commit: ghc] wip/ghc-8.8-merges: make ghc-pkg shut up (f144eaa)

git at git.haskell.org git at git.haskell.org
Thu Feb 21 15:11:03 UTC 2019


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

On branch  : wip/ghc-8.8-merges
Link       : http://ghc.haskell.org/trac/ghc/changeset/f144eaa819e9bd1c93a9872a90cdba85a91d7174/ghc

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

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

    make ghc-pkg shut up
    
    (cherry picked from commit f00b35f4ddcc61fb1b1f09854bbbf38934ff0865)


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

f144eaa819e9bd1c93a9872a90cdba85a91d7174
 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