MicroHs-0.17.4.0 / tests / Forall.hs
module Forall where-- Test nested forall in co-variant positionk :: forall a . a -> (forall b. b->b)k _ y = ya :: a -> (forall b . b)a _ = undefinedtype Memo a = forall r. (a -> r) -> (a -> r)wrap :: (a -> b) -> (b -> a) -> Memo a -> Memo bwrap i j m f = m (f . i) . jmain :: IO ()main = print (k True 'a')