projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eff70f
)
Minor refactoring
author
simonpj@microsoft.com
<unknown>
Fri, 17 Sep 2010 14:01:50 +0000
(14:01 +0000)
committer
simonpj@microsoft.com
<unknown>
Fri, 17 Sep 2010 14:01:50 +0000
(14:01 +0000)
compiler/typecheck/TcSMonad.lhs
patch
|
blob
|
history
diff --git
a/compiler/typecheck/TcSMonad.lhs
b/compiler/typecheck/TcSMonad.lhs
index
d77b0c2
..
4965a93
100644
(file)
--- 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