From: simonpj Date: Fri, 31 Oct 2003 12:56:50 +0000 (+0000) Subject: [project @ 2003-10-31 12:56:50 by simonpj] X-Git-Tag: Approx_11550_changesets_converted~302 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=9f0923372607a5fe646a89266b8961faf61421b9;p=ghc-hetmet.git [project @ 2003-10-31 12:56:50 by simonpj] Pretty-printing wibble; fixes many tests --- diff --git a/ghc/compiler/types/TypeRep.lhs b/ghc/compiler/types/TypeRep.lhs index 1cb51c4..5c04c9c 100644 --- 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(":]")