X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FcoreSyn%2FPprExternalCore.lhs;h=502c26879a2f349db686022df304c67f325840af;hb=8100cd4395e46ae747be4298c181a4730d6206bc;hp=8e9dbfea8a93d3fe53f933d164e7b7b91d2a2d79;hpb=06855066dcd2533094f2a8f877753e2c03d6f656;p=ghc-hetmet.git diff --git a/compiler/coreSyn/PprExternalCore.lhs b/compiler/coreSyn/PprExternalCore.lhs index 8e9dbfe..502c268 100644 --- a/compiler/coreSyn/PprExternalCore.lhs +++ b/compiler/coreSyn/PprExternalCore.lhs @@ -1,14 +1,14 @@ % -% (c) The University of Glasgow 2001 +% (c) The University of Glasgow 2001-2006 % -\begin{code} +\begin{code} module PprExternalCore () where import Pretty import ExternalCore import Char -import Encoding ( zEncodeString ) +import Encoding instance Show Module where showsPrec d m = shows (pmodule m) @@ -132,9 +132,11 @@ 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 (Coerce t e) = (text "%coerce" <+> paty t) $$ pexp e +pexp (Cast e co) = (text "%cast" <+> pexp e) $$ paty co pexp (Note s e) = (text "%note" <+> pstring s) $$ pexp e -pexp (External n t) = (text "%external" <+> pstring n) $$ paty t +pexp (External n cc t) = (text "%external" <+> text cc <+> pstring n) $$ paty t +pexp (DynExternal cc t) = (text "%dynexternal" <+> text cc) $$ paty t +pexp (Label n) = (text "%label" <+> pstring n) pexp e = pfexp e