diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2019-01-23 10:59:38 +0800 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-02-20 14:28:55 -0500 |
commit | f144eaa819e9bd1c93a9872a90cdba85a91d7174 (patch) | |
tree | 89100545ff435f10929ac6fffc15e9158905fcbd /utils | |
parent | 60b46c5108f18c92839ae8309f1e811dd47e7c1d (diff) | |
download | haskell-f144eaa819e9bd1c93a9872a90cdba85a91d7174.tar.gz |
make ghc-pkg shut up
(cherry picked from commit f00b35f4ddcc61fb1b1f09854bbbf38934ff0865)
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ghc-pkg/Main.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs index 8b7655b3bb..534bbac6dd 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 |