Pretty printing change
authorsimonpj@microsoft.com <unknown>
Wed, 18 Aug 2010 06:54:36 +0000 (06:54 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 18 Aug 2010 06:54:36 +0000 (06:54 +0000)
compiler/types/TypeRep.lhs

index 55beb28..74e0bdf 100644 (file)
@@ -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