X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcClassDcl.lhs;h=1a5697ed7803d150ec70e06e5aaef81f9a28104e;hb=44674ca1081895c95e04707d74779d3f887c430e;hp=85a94315ea5cc694d71f2fe84a54160fa1f7bf96;hpb=d2ce0f52d42edf32bb9f13796e6ba6edba8bd516;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcClassDcl.lhs b/compiler/typecheck/TcClassDcl.lhs index 85a9431..1a5697e 100644 --- a/compiler/typecheck/TcClassDcl.lhs +++ b/compiler/typecheck/TcClassDcl.lhs @@ -19,6 +19,7 @@ import RnHsSyn import RnExpr import Inst import InstEnv +import TcPat( addInlinePrags ) import TcEnv import TcBinds import TcUnify @@ -216,9 +217,10 @@ tcDefMeth clas tyvars this_dict binds_in sig_fn prag_fn (sel_id, dm_info) dm_id = mkDefaultMethodId sel_id dm_name local_dm_type = instantiateMethod clas sel_id (mkTyVarTys tyvars) local_dm_id = mkLocalId local_dm_name local_dm_type + prags = prag_fn sel_name - ; (dm_id_w_inline, spec_prags) - <- tcPrags NonRecursive False True dm_id (prag_fn sel_name) + ; dm_id_w_inline <- addInlinePrags dm_id prags + ; spec_prags <- tcSpecPrags dm_id prags ; warnTc (not (null spec_prags)) (ptext (sLit "Ignoring SPECIALISE pragmas on default method")