Don't emit 'Skipping' messages unless -v2 or higher is on
authorDon Stewart <dons@cse.unsw.edu.au>
Sat, 10 Jun 2006 14:57:13 +0000 (14:57 +0000)
committerDon Stewart <dons@cse.unsw.edu.au>
Sat, 10 Jun 2006 14:57:13 +0000 (14:57 +0000)
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

index fdad852..d5d920d 100644 (file)
@@ -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