projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
969587d70e579c36fe37533016c405f4abec9db0
[ghc-hetmet.git]
/
ghc
/
tests
/
deSugar
/
should_compile
/
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)