X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FcoreSyn%2FPprExternalCore.lhs;h=871f43cb4326db5ba4039f4141dc688323a694b4;hb=98744cef7b82e7eefbb1c6f1d8b9e28c415939c4;hp=73536fa99d767bbde6917e100507807e5631af3f;hpb=04dee6938d904365fdbc5ad44801f6dd17a63157;p=ghc-hetmet.git diff --git a/ghc/compiler/coreSyn/PprExternalCore.lhs b/ghc/compiler/coreSyn/PprExternalCore.lhs index 73536fa..871f43c 100644 --- a/ghc/compiler/coreSyn/PprExternalCore.lhs +++ b/ghc/compiler/coreSyn/PprExternalCore.lhs @@ -3,7 +3,7 @@ % \begin{code} -module PprExternalCore where +module PprExternalCore () where import Pretty import ExternalCore @@ -55,12 +55,12 @@ ptdef (Newtype tcon tbinds rep ) = Nothing -> empty pcdef (Constr dcon tbinds tys) = - (pqname dcon) <+> (sep [hsep (map pattbind tbinds),sep (map paty tys)]) + (pname dcon) <+> (sep [hsep (map pattbind tbinds),sep (map paty tys)]) pname id = text id pqname ("",id) = pname id -pqname (m,id) = pname m <> char '.' <> pname id +pqname (m,id) = pname m <> char '.' <> pname id ptbind (t,Klifted) = pname t ptbind (t,k) = parens (pname t <> text "::" <> pkind k) @@ -96,7 +96,7 @@ pforall tbs t = hsep (map ptbind tbs) <+> char '.' <+> pty t pvdefg (Rec vtes) = text "%rec" $$ braces (indent (vcat (punctuate (char ';') (map pvte vtes)))) pvdefg (Nonrec vte) = pvte vte -pvte (v,t,e) = sep [pqname v <+> text "::" <+> pty t <+> char '=', +pvte (v,t,e) = sep [pname v <+> text "::" <+> pty t <+> char '=', indent (pexp e)] paexp (Var x) = pqname x