X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2FcoreSyn%2FPprExternalCore.lhs;h=ded798ccff5256a2b9befdf94a87f60fa7e4320e;hb=17b297d97d327620ed6bfab942f8992b2446f1bf;hp=502c26879a2f349db686022df304c67f325840af;hpb=e513c1cc1de895fed5796d16cb67525f4b581b2a;p=ghc-hetmet.git diff --git a/compiler/coreSyn/PprExternalCore.lhs b/compiler/coreSyn/PprExternalCore.lhs index 502c268..ded798c 100644 --- a/compiler/coreSyn/PprExternalCore.lhs +++ b/compiler/coreSyn/PprExternalCore.lhs @@ -3,6 +3,13 @@ % \begin{code} +{-# OPTIONS_GHC -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings +-- for details + module PprExternalCore () where import Pretty @@ -76,6 +83,7 @@ pakind (Kopen) = char '?' pakind k = parens (pkind k) pkind (Karrow k1 k2) = parens (pakind k1 <> text "->" <> pkind k2) +pkind (Keq t1 t2) = parens (pty t1 <> text ":=:" <> pty t2) pkind k = pakind k paty (Tvar n) = pname n @@ -132,7 +140,7 @@ pexp (Let vd e) = (text "%let" <+> pvdefg vd) $$ (text "%in" <+> pexp e) pexp (Case e vb ty alts) = sep [text "%case" <+> parens (paty ty) <+> paexp e, text "%of" <+> pvbind vb] $$ (indent (braces (vcat (punctuate (char ';') (map palt alts))))) -pexp (Cast e co) = (text "%cast" <+> pexp e) $$ paty co +pexp (Cast e co) = (text "%cast" <+> parens (pexp e)) $$ paty co pexp (Note s e) = (text "%note" <+> pstring s) $$ pexp e pexp (External n cc t) = (text "%external" <+> text cc <+> pstring n) $$ paty t pexp (DynExternal cc t) = (text "%dynexternal" <+> text cc) $$ paty t