projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 1996-12-19 09:39:49 by simonpj]
[ghc-hetmet.git]
/
ghc
/
compiler
/
basicTypes
/
Name.lhs
diff --git
a/ghc/compiler/basicTypes/Name.lhs
b/ghc/compiler/basicTypes/Name.lhs
index
d4b56e0
..
824d7a5
100644
(file)
--- a/
ghc/compiler/basicTypes/Name.lhs
+++ b/
ghc/compiler/basicTypes/Name.lhs
@@
-401,7
+401,8
@@
instance NamedThing Name where
instance Outputable Name where
ppr sty (Local u n _) | codeStyle sty ||
ifaceStyle sty = pprUnique u
instance Outputable Name where
ppr sty (Local u n _) | codeStyle sty ||
ifaceStyle sty = pprUnique u
- | otherwise = ppBesides [ppPStr (occNameString n), ppPStr SLIT("_"), pprUnique u]
+ ppr PprForUser (Local _ n _) = ppPStr (occNameString n)
+ ppr other_sty (Local u n _) = ppBesides [ppPStr (occNameString n), ppPStr SLIT("_"), pprUnique u]
ppr sty (Global u m n _ _) = ppBesides [pp_name, pp_uniq sty u]
where
ppr sty (Global u m n _ _) = ppBesides [pp_name, pp_uniq sty u]
where