X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcSMonad.lhs;h=4965a931467b089ab304871cc8565197c6606efe;hb=e4b5abb6ddfd07a7f95455c94faf2946a1bc078e;hp=2524afc7a2d8799bc44ceae08b7ae4a39cdbd499;hpb=b597fa5bd78b96ea1c2f7ed6a6183ea8004fcbeb;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcSMonad.lhs b/compiler/typecheck/TcSMonad.lhs index 2524afc..4965a93 100644 --- a/compiler/typecheck/TcSMonad.lhs +++ b/compiler/typecheck/TcSMonad.lhs @@ -31,7 +31,7 @@ module TcSMonad ( getInstEnvs, getFamInstEnvs, -- Getting the environments getTopEnv, getGblEnv, getTcEvBinds, getUntouchablesTcS, - getTcEvBindsBag, getTcSContext, + getTcEvBindsBag, getTcSContext, getTcSTyBinds, newFlattenSkolemTy, -- Flatten skolems @@ -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