projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 1997-07-27 09:27:45 by sof]
[ghc-hetmet.git]
/
ghc
/
compiler
/
tests
/
deSugar
/
ds026.hs
1
--!!! ds026 -- classes -- incl. polymorphic method
2
3
module ShouldSucceed where
4
5
class Foo a where
6
op :: a -> a
7
8
class Foo a => Boo a where
9
op1 :: a -> a
10
11
class Boo a => Noo a where
12
op2 :: (Eq b) => a -> b -> a
13
14
f x y = op (op2 x y)