X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FhsSyn%2FHsDecls.lhs;h=08d12b7f3702cab8e5409572d24e380a775bbb64;hb=836b1e90821aacc9d1e09fe78085f911597274c8;hp=0312dcb197a790d383b12f91f90169af3273d3f8;hpb=172b85497dc0da68176fa90c993abd9bcdc6b96f;p=ghc-hetmet.git diff --git a/compiler/hsSyn/HsDecls.lhs b/compiler/hsSyn/HsDecls.lhs index 0312dcb..08d12b7 100644 --- a/compiler/hsSyn/HsDecls.lhs +++ b/compiler/hsSyn/HsDecls.lhs @@ -102,6 +102,7 @@ data HsDecl id | RuleD (RuleDecl id) | SpliceD (SpliceDecl id) | DocD (DocDecl) + | QuasiQuoteD (HsQuasiQuote id) -- NB: all top-level fixity decls are contained EITHER @@ -204,6 +205,7 @@ instance OutputableBndr name => Outputable (HsDecl name) where ppr (AnnD ad) = ppr ad ppr (SpliceD dd) = ppr dd ppr (DocD doc) = ppr doc + ppr (QuasiQuoteD qq) = ppr qq instance OutputableBndr name => Outputable (HsGroup name) where ppr (HsGroup { hs_valds = val_decls, @@ -696,7 +698,7 @@ data ConDecl name -- ^ Constructor name. This is used for the DataCon itself, and for -- the user-callable wrapper Id. - , con_explicit :: HsExplicitForAll + , con_explicit :: HsExplicitFlag -- ^ Is there an user-written forall? (cf. 'HsTypes.HsForAllTy') , con_qvars :: [LHsTyVarBndr name] @@ -940,9 +942,7 @@ instance Outputable ForeignImport where pprCEntity (CLabel lbl) = ptext (sLit "static") <+> pp_hdr <+> char '&' <> ppr lbl - pprCEntity (CFunction (StaticTarget lbl)) = - ptext (sLit "static") <+> pp_hdr <+> ppr lbl - pprCEntity (CFunction (PackageTarget lbl _)) = + pprCEntity (CFunction (StaticTarget lbl _)) = ptext (sLit "static") <+> pp_hdr <+> ppr lbl pprCEntity (CFunction (DynamicTarget)) = ptext (sLit "dynamic")