[project @ 2001-08-22 11:45:06 by sewardj]
[ghc-hetmet.git] / ghc / tests / deSugar / should_compile / ds026.hs
1 -- !!! ds026 -- classes -- incl. polymorphic method
2
3 module ShouldCompile 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)