[commit: ghc] ghc-7.10: compiler: kill a stray pprTrace in OccName (91324d4)

git at git.haskell.org git at git.haskell.org
Tue Jun 2 19:24:21 UTC 2015


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

On branch  : ghc-7.10
Link       : http://ghc.haskell.org/trac/ghc/changeset/91324d46496e9f5623b06060d067332296914d88/ghc

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

commit 91324d46496e9f5623b06060d067332296914d88
Author: Austin Seipp <austin at well-typed.com>
Date:   Sat May 23 07:26:55 2015 -0500

    compiler: kill a stray pprTrace in OccName
    
    Left in by c89bd681d34d, and otherwise rather annoying during the build!
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>
    (cherry picked from commit 4d6c0ee11ff2c439fcd06677d55c57b8644ed7a7)


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

91324d46496e9f5623b06060d067332296914d88
 compiler/basicTypes/OccName.hs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/compiler/basicTypes/OccName.hs b/compiler/basicTypes/OccName.hs
index 7ea3faf..a0b5758 100644
--- a/compiler/basicTypes/OccName.hs
+++ b/compiler/basicTypes/OccName.hs
@@ -848,9 +848,7 @@ tidyOccName env occ@(OccName occ_sp fs)
                        --    1, add 1, add 2, add 3, etc which
                        -- moves at quadratic speed through a dense patch
 
-          Nothing -> (if k>5 then pprTrace "tidyOccName" (ppr k $$ ppr occ $$ ppr new_fs)
-                             else \x -> x)
-                     (new_env, OccName occ_sp new_fs)
+          Nothing -> (new_env, OccName occ_sp new_fs)
        where
          new_fs = mkFastString (base ++ show n)
          new_env = addToUFM (addToUFM env new_fs 1) base1 (n+1)



More information about the ghc-commits mailing list