summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZubin Duggal <zubin.duggal@gmail.com>2021-10-14 17:15:20 +0530
committerZubin <zubin.duggal@gmail.com>2021-10-14 16:29:38 +0000
commitadf83be711a9fee2fd3efb9bfc0fc458814e36c1 (patch)
treebe3f3a365694d4f3592fe7cfb37dd577cea4d3a0
parent7f2ce0d6bc1404d6d91b3d8560efddc208f46a24 (diff)
downloadhaskell-wip/hadrian-messages.tar.gz
Don't print Shake Diagnostic messages (#20484)wip/hadrian-messages
-rw-r--r--hadrian/src/Main.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/hadrian/src/Main.hs b/hadrian/src/Main.hs
index 7fc15e245b..d2e0ace795 100644
--- a/hadrian/src/Main.hs
+++ b/hadrian/src/Main.hs
@@ -83,6 +83,11 @@ main = do
-- Ignore in-tree GMP objects
, buildRoot -/- "**/gmp/objs/**"
]
+ , shakeOutput = \v -> case v of
+ -- We don't want to print internal shake diagnostic messages as
+ -- they are too verbose to be of any use. See #20484.
+ Diagnostic -> const (pure ())
+ _ -> shakeOutput shakeOptions v
}
rules :: Rules ()