From 9f0923372607a5fe646a89266b8961faf61421b9 Mon Sep 17 00:00:00 2001 From: simonpj Date: Fri, 31 Oct 2003 12:56:50 +0000 Subject: [PATCH] [project @ 2003-10-31 12:56:50 by simonpj] Pretty-printing wibble; fixes many tests --- ghc/compiler/types/TypeRep.lhs | 2 ++ 1 file changed, 2 insertions(+) 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(":]") -- 1.7.10.4