Minor refactoring
authorsimonpj@microsoft.com <unknown>
Fri, 17 Sep 2010 14:01:50 +0000 (14:01 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 17 Sep 2010 14:01:50 +0000 (14:01 +0000)
compiler/typecheck/TcSMonad.lhs

index d77b0c2..4965a93 100644 (file)
@@ -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