blob: b7b301794d4cc8861ccb1c089e92d4d5f8cb0fe4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
-- !!! From a Rick Morgan bug report:
-- !!! Single-method class with a locally-polymorphic
-- !!! method.
module Main where
class Poly a where
poly :: a -> b -> b
instance Poly [a] where
poly [] y = y
poly x y = y
main = print ("hurrah" `poly` "Hello, world!\n")
|