summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail110.hs
blob: f9d1bb9c5801fa1a63e6e80e7030205acd8ed419 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE RankNTypes #-}

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