X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Ftypes%2FPprType.lhs;h=0285731658fa4d77d06b8688e7885ec1c1c55b7a;hb=35c63bfcf979854cbe034a134dbcb7505313bbef;hp=0412c04a5de7a25c8ce8f98262c2159ff29d6ca9;hpb=54bab78d57da2b177b7a5314f191d0986364f210;p=ghc-hetmet.git diff --git a/ghc/compiler/types/PprType.lhs b/ghc/compiler/types/PprType.lhs index 0412c04..0285731 100644 --- a/ghc/compiler/types/PprType.lhs +++ b/ghc/compiler/types/PprType.lhs @@ -70,13 +70,13 @@ pprPred = pprSourceType pprSourceType :: SourceType -> SDoc pprSourceType (ClassP clas tys) = pprClassPred clas tys pprSourceType (IParam n ty) = hsep [ppr n, dcolon, ppr ty] -pprSourceType (NType tc tys) = ppr tc <+> hsep (map pprParendType tys) +pprSourceType (NType tc tys) = ppr tc <+> sep (map pprParendType tys) pprClassPred :: Class -> [Type] -> SDoc -pprClassPred clas tys = ppr clas <+> hsep (map pprParendType tys) +pprClassPred clas tys = ppr clas <+> sep (map pprParendType tys) pprTheta :: ThetaType -> SDoc -pprTheta theta = parens (hsep (punctuate comma (map pprPred theta))) +pprTheta theta = parens (sep (punctuate comma (map pprPred theta))) instance Outputable Type where ppr ty = pprType ty