projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57573e7
)
[project @ 2003-10-31 12:56:50 by simonpj]
author
simonpj
<unknown>
Fri, 31 Oct 2003 12:56:50 +0000
(12:56 +0000)
committer
simonpj
<unknown>
Fri, 31 Oct 2003 12:56:50 +0000
(12:56 +0000)
Pretty-printing wibble; fixes many tests
ghc/compiler/types/TypeRep.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/types/TypeRep.lhs
b/ghc/compiler/types/TypeRep.lhs
index
1cb51c4
..
5c04c9c
100644
(file)
--- a/
ghc/compiler/types/TypeRep.lhs
+++ b/
ghc/compiler/types/TypeRep.lhs
@@
-523,6
+523,8
@@
ppr_type p ty@(ForAllTy _ _)
split2 ps ty = (reverse ps, ty)
ppr_tc_app :: Prec -> TyCon -> [Type] -> SDoc
+ppr_tc_app p tc []
+ = ppr tc
ppr_tc_app p tc [ty]
| tc `hasKey` listTyConKey = brackets (pprType ty)
| tc `hasKey` parrTyConKey = ptext SLIT("[:") <> pprType ty <> ptext SLIT(":]")