projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git]
/
ghc
/
compiler
/
tests
/
typecheck
/
should_succeed
/
tc056.hs
1
module ShouldSucceed where
2
3
class Eq' a where
4
doubleeq :: a -> a -> Bool
5
6
class (Eq' a) => Ord' a where
7
lt :: a -> a -> Bool
8
9
instance Eq' Int where
10
doubleeq x y = True
11
12
instance (Eq' a,Eq' a) => Eq' [a] where
13
doubleeq x y = True
14
15
f x y = doubleeq x [1]