1 {-# OPTIONS -fglasgow-exts #-}
3 -- !!! Rank 2 polymorphism
4 -- Both f and g are rejected by Hugs [April 2001]
8 data T = T { t1 :: forall a. a -> a , t2 :: forall a b. a->b->b }
10 -- Test pattern bindings for polymorphic fields
12 f t = let T { t1 = my_t1 } = t
16 -- Test record update with polymorphic fields
18 g t = t { t2 = \x y -> y }