From 01a5114380c0b04ce0f3f3e9563de8ed02ebe0d3 Mon Sep 17 00:00:00 2001 From: Don Stewart Date: Sat, 10 Jun 2006 14:57:13 +0000 Subject: [PATCH] Don't emit 'Skipping' messages unless -v2 or higher is on Following GNU make, this patch makes GHC not emit messages about modules its skipping. This makes builds much quieter, and its a lot easier to work out what effects a change had on the code. The current behaviour can be recovered with -v2 --- compiler/main/HscMain.lhs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/main/HscMain.lhs b/compiler/main/HscMain.lhs index fdad852..d5d920d 100644 --- a/compiler/main/HscMain.lhs +++ b/compiler/main/HscMain.lhs @@ -397,9 +397,9 @@ batchMsg mb_mod_index recomp liftIO $ do if recomp then showMsg "Compiling " - else showMsg "Skipping " - - + else if verbosity (hsc_dflags hsc_env) >= 2 + then showMsg "Skipping " + else return () -------------------------------------------------------------- -- FrontEnds -- 1.7.10.4