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:
a71f852
)
[project @ 2000-06-28 11:28:27 by simonmar]
author
simonmar
<unknown>
Wed, 28 Jun 2000 11:28:27 +0000
(11:28 +0000)
committer
simonmar
<unknown>
Wed, 28 Jun 2000 11:28:27 +0000
(11:28 +0000)
add missing default case for Eq (TyClDecl name pat)
ghc/compiler/hsSyn/HsDecls.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/hsSyn/HsDecls.lhs
b/ghc/compiler/hsSyn/HsDecls.lhs
index
1c3c8d4
..
4e6c2b4
100644
(file)
--- a/
ghc/compiler/hsSyn/HsDecls.lhs
+++ b/
ghc/compiler/hsSyn/HsDecls.lhs
@@
-185,6
+185,9
@@
instance Ord name => Eq (TyClDecl name pat) where
eqListBy (eq_cls_sig env) sigs1 sigs2
)
+ (==) _ _ = False -- default case
+
+
eq_hsFD env (ns1,ms1) (ns2,ms2)
= eqListBy (eq_hsVar env) ns1 ns2 && eqListBy (eq_hsVar env) ms1 ms2