X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcInteract.lhs;fp=compiler%2Ftypecheck%2FTcInteract.lhs;h=b49ec65616f2104fa47cadfdb91819ff6a79c7a6;hp=c04fd0f93503707342830e1e05ce86b1d8220503;hb=fbb99e831a0c0510e79b2f0c91bbdffd142ea951;hpb=0c1a685f5727c8516ec3f06806bc3b0ae0be2370 diff --git a/compiler/typecheck/TcInteract.lhs b/compiler/typecheck/TcInteract.lhs index c04fd0f..b49ec65 100644 --- a/compiler/typecheck/TcInteract.lhs +++ b/compiler/typecheck/TcInteract.lhs @@ -840,9 +840,9 @@ interactWithInert fdimprs inert workitem -- We don't have to do this for givens, as we fully know the evidence for them. ; rec_ev_ok <- case (cc_flavor inert, cc_flavor workitem) of - (Wanted loc, Derived {}) -> isGoodRecEv work_ev (WantedEvVar inert_ev loc) - (Derived {}, Wanted loc) -> isGoodRecEv inert_ev (WantedEvVar work_ev loc) - _ -> return True + (Wanted {}, Derived {}) -> isGoodRecEv work_ev inert_ev + (Derived {}, Wanted {}) -> isGoodRecEv inert_ev work_ev + _ -> return True ; if is_allowed && rec_ev_ok then doInteractWithInert fdimprs inert workitem