blob: 92aeb56c06e500005162b65db2a7f89bc0b31961 (
plain)
1
2
3
4
5
6
7
8
9
|
{-# LANGUAGE Rank2Types #-}
module ShouldCompile where
data Foo a b = Foo { foo :: a -> b }
-- kind error in here
bar :: String -> (forall a . Foo a) -> IO ()
bar s _ = putStrLn s
|