X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FhsSyn%2FHsDecls.lhs;h=001d4f8ada9defc27fc93750568a25e343156f53;hb=9e6162f9d0102d1f5738bf78258b24ea5a647ea4;hp=ca0e32413a89f5f618975cad1234024fa4c84c79;hpb=e0445ffa5a89632b542e7d7bc2ad46d944716453;p=ghc-hetmet.git diff --git a/ghc/compiler/hsSyn/HsDecls.lhs b/ghc/compiler/hsSyn/HsDecls.lhs index ca0e324..001d4f8 100644 --- a/ghc/compiler/hsSyn/HsDecls.lhs +++ b/ghc/compiler/hsSyn/HsDecls.lhs @@ -211,6 +211,7 @@ Here's the deal. (We distinguish the two cases because source-code decls have (Just binds) in the tcdMeths field, whereas interface decls have Nothing. In *source-code* class declarations: + - When parsing, every ClassOpSig gets a DefMeth with a suitable RdrName This is done by RdrHsSyn.mkClassOpSigDM @@ -840,6 +841,7 @@ data RuleDecl name name -- Head of LHS CoreRule +isSrcRule :: RuleDecl name -> Bool isSrcRule (HsRule _ _ _ _ _ _) = True isSrcRule other = False