From 9c83ea50dcfb5c5ada888cf956560df641afb130 Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Wed, 18 Aug 2010 06:54:36 +0000 Subject: [PATCH] Pretty printing change --- compiler/types/TypeRep.lhs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/types/TypeRep.lhs b/compiler/types/TypeRep.lhs index 55beb28..74e0bdf 100644 --- a/compiler/types/TypeRep.lhs +++ b/compiler/types/TypeRep.lhs @@ -449,7 +449,8 @@ pprClassPred :: Class -> [Type] -> SDoc pprClassPred clas tys = ppr_type_app TopPrec (getName clas) tys pprTheta :: ThetaType -> SDoc -pprTheta theta = parens (sep (punctuate comma (map pprPred theta))) +pprTheta [pred] = pprPred pred +pprTheta theta = parens (sep (punctuate comma (map pprPred theta))) pprThetaArrow :: ThetaType -> SDoc pprThetaArrow [] = empty -- 1.7.10.4