[commit: ghc] master: Change linker message verbosity to `-v2` (re #7863) (9f7e363)

git at git.haskell.org git at git.haskell.org
Sat Sep 20 19:24:30 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/9f7e3633c692dce75c27607131bd386178fb0fcf/ghc

>---------------------------------------------------------------

commit 9f7e3633c692dce75c27607131bd386178fb0fcf
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sat Sep 20 21:23:28 2014 +0200

    Change linker message verbosity to `-v2` (re #7863)
    
    With this change, the linker status logging output such as
    
        Loading package ghc-prim ... linking ... done.
        Loading package integer-gmp ... linking ... done.
        Loading package base ... linking ... done.
    
    is suppressed unless verbosity level is `-v2` or higher. This is done
    to reduce the compiler message noise when TH is involved, which can
    reduce the visibiliy of compile warnings.
    
    Reviewed By: ekmett, austin
    
    Differential Revision: https://phabricator.haskell.org/D232


>---------------------------------------------------------------

9f7e3633c692dce75c27607131bd386178fb0fcf
 compiler/ghci/Linker.lhs                               | 2 +-
 testsuite/tests/indexed-types/should_fail/T9160.stderr | 5 -----
 testsuite/tests/simplCore/should_compile/T5550.stderr  | 3 ---
 3 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/compiler/ghci/Linker.lhs b/compiler/ghci/Linker.lhs
index 5b0251c..ecba45b 100644
--- a/compiler/ghci/Linker.lhs
+++ b/compiler/ghci/Linker.lhs
@@ -1292,7 +1292,7 @@ findFile mk_file_path (dir : dirs)
 \begin{code}
 maybePutStr :: DynFlags -> String -> IO ()
 maybePutStr dflags s
-    = when (verbosity dflags > 0) $
+    = when (verbosity dflags > 1) $
           do let act = log_action dflags
              act dflags SevInteractive noSrcSpan defaultUserStyle (text s)
 
diff --git a/testsuite/tests/indexed-types/should_fail/T9160.stderr b/testsuite/tests/indexed-types/should_fail/T9160.stderr
index 11c6cd3..e356f80 100644
--- a/testsuite/tests/indexed-types/should_fail/T9160.stderr
+++ b/testsuite/tests/indexed-types/should_fail/T9160.stderr
@@ -1,8 +1,3 @@
-Loading package ghc-prim-0.3.1.0 ... linking ... done.
-Loading package integer-gmp-0.5.1.0 ... linking ... done.
-Loading package base-4.8.0.0 ... linking ... done.
-Loading package pretty-1.1.1.1 ... linking ... done.
-Loading package template-haskell-2.10.0.0 ... linking ... done.
 
 T9160.hs:18:8:
     Type indexes must match class instance head
diff --git a/testsuite/tests/simplCore/should_compile/T5550.stderr b/testsuite/tests/simplCore/should_compile/T5550.stderr
index c2fa315..e69de29 100644
--- a/testsuite/tests/simplCore/should_compile/T5550.stderr
+++ b/testsuite/tests/simplCore/should_compile/T5550.stderr
@@ -1,3 +0,0 @@
-Loading package ghc-prim-0.3.1.0 ... linking ... done.
-Loading package integer-gmp-0.5.1.0 ... linking ... done.
-Loading package base-4.8.0.0 ... linking ... done.



More information about the ghc-commits mailing list