X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcSMonad.lhs;h=4965a931467b089ab304871cc8565197c6606efe;hb=b3e722e9ff0aeedceeeeacc67d61e11a5ee5b92a;hp=d77b0c209f2af6f6d74ed110194652b3e0cb5574;hpb=73855b2d99dfb60b89c057f43ab313b243cfc574;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcSMonad.lhs b/compiler/typecheck/TcSMonad.lhs index d77b0c2..4965a93 100644 --- a/compiler/typecheck/TcSMonad.lhs +++ b/compiler/typecheck/TcSMonad.lhs @@ -283,7 +283,8 @@ isGiven (Given {}) = True isGiven _ = False isDerived :: CtFlavor -> Bool -isDerived ctid = not $ isGiven ctid || isWanted ctid +isDerived (Derived {}) = True +isDerived _ = False canRewrite :: CtFlavor -> CtFlavor -> Bool -- canRewrite ctid1 ctid2