[project @ 2003-10-31 12:56:50 by simonpj]
authorsimonpj <unknown>
Fri, 31 Oct 2003 12:56:50 +0000 (12:56 +0000)
committersimonpj <unknown>
Fri, 31 Oct 2003 12:56:50 +0000 (12:56 +0000)
Pretty-printing wibble; fixes many tests

ghc/compiler/types/TypeRep.lhs

index 1cb51c4..5c04c9c 100644 (file)
@@ -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(":]")