X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcTyFuns.lhs;h=7bb8680861c023571505e274ba9e7a19100131c7;hb=e9f9ec1e57d53b9302a395ce0d02c0fa59e28341;hp=db65c41e3bd86a9cf5a966690736ab5fb1d21e1a;hpb=c7fa9243867d49177c9ebc7923588488dbd3a369;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcTyFuns.lhs b/compiler/typecheck/TcTyFuns.lhs index db65c41..7bb8680 100644 --- a/compiler/typecheck/TcTyFuns.lhs +++ b/compiler/typecheck/TcTyFuns.lhs @@ -1599,10 +1599,9 @@ somethingdifferent message. eqInstMisMatch :: Inst -> TcM a eqInstMisMatch inst = ASSERT( isEqInst inst ) - setErrCtxt ctxt $ failWithMisMatch ty_act ty_exp + setInstCtxt (instLoc inst) $ failWithMisMatch ty_act ty_exp where (ty_act, ty_exp) = eqInstTys inst - InstLoc _ _ ctxt = instLoc inst ----------------------- failWithMisMatch :: TcType -> TcType -> TcM a