projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 1996-07-26 20:58:52 by partain]
[ghc-hetmet.git]
/
ghc
/
compiler
/
tests
/
typecheck
/
should_fail
/
tcfail056.hs
1
module ShouldFail where
2
3
data Foo = MkFoo Bool
4
5
instance Eq Foo where
6
(MkFoo x) == (MkFoo y) = x == y
7
8
instance Eq Foo where
9
-- forgot to type "Ord" above
10
(MkFoo x) <= (MkFoo y) = x <= y
11