[commit: ghc] wip/gadtpm: Print varUnique with an underscore (dash causes problems later) (db1b098)
git at git.haskell.org
git at git.haskell.org
Tue Feb 10 12:17:26 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/gadtpm
Link : http://ghc.haskell.org/trac/ghc/changeset/db1b098e4b100b5f64186547d8811adb260bacc6/ghc
>---------------------------------------------------------------
commit db1b098e4b100b5f64186547d8811adb260bacc6
Author: George Karachalias <george.karachalias at gmail.com>
Date: Tue Feb 10 13:17:44 2015 +0100
Print varUnique with an underscore (dash causes problems later)
>---------------------------------------------------------------
db1b098e4b100b5f64186547d8811adb260bacc6
compiler/basicTypes/Var.hs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler/basicTypes/Var.hs b/compiler/basicTypes/Var.hs
index 167aa96..cd26f48 100644
--- a/compiler/basicTypes/Var.hs
+++ b/compiler/basicTypes/Var.hs
@@ -205,7 +205,7 @@ After CoreTidy, top-level LocalIds are turned into GlobalIds
-}
instance Outputable Var where
- ppr var = ppr (varName var) <> ptext (sLit "-") <> ppr (varUnique var) <> getPprStyle (ppr_debug var)
+ ppr var = ppr (varName var) <> ptext (sLit "_") <> ppr (varUnique var) <> getPprStyle (ppr_debug var)
ppr_debug :: Var -> PprStyle -> SDoc
ppr_debug (TyVar {}) sty
More information about the ghc-commits
mailing list