[project @ 2001-10-03 08:16:49 by simonmar]
authorsimonmar <unknown>
Wed, 3 Oct 2001 08:16:49 +0000 (08:16 +0000)
committersimonmar <unknown>
Wed, 3 Oct 2001 08:16:49 +0000 (08:16 +0000)
Don't print the "compilation IS NOT required" in quiet mode (-v0).

ghc/compiler/main/HscMain.lhs

index e9851e6..5da7b8d 100644 (file)
@@ -161,7 +161,8 @@ hscNoRecomp ghci_mode dflags have_object
            mod location (Just old_iface) hst hit pcs_ch
  | ghci_mode == OneShot
  = do {
-      hPutStrLn stderr "compilation IS NOT required";
+      when (verbosity dflags > 0) $
+         hPutStrLn stderr "compilation IS NOT required";
       let { bomb = panic "hscNoRecomp:OneShot" };
       return (HscNoRecomp pcs_ch bomb bomb)
       }