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:
32c4b4b
)
[project @ 2003-12-16 16:19:04 by simonpj]
author
simonpj
<unknown>
Tue, 16 Dec 2003 16:19:04 +0000
(16:19 +0000)
committer
simonpj
<unknown>
Tue, 16 Dec 2003 16:19:04 +0000
(16:19 +0000)
Rule selection test was exactly backwards
ghc/compiler/iface/TcIface.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/iface/TcIface.lhs
b/ghc/compiler/iface/TcIface.lhs
index
8c45b69
..
51bf028
100644
(file)
--- a/
ghc/compiler/iface/TcIface.lhs
+++ b/
ghc/compiler/iface/TcIface.lhs
@@
-586,7
+586,7
@@
selectRules (Pool rules n_in n_out) type_env
| null gates' = (pool, rule:if_rules)
| otherwise = ((gates',rule) : pool, if_rules)
where
- gates' = filter (`elemNameEnv` type_env) gates
+ gates' = filter (not . (`elemNameEnv` type_env)) gates
tcIfaceRule :: IfaceRule -> IfL IdCoreRule