diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail110.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail110.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail110.hs b/testsuite/tests/typecheck/should_fail/tcfail110.hs new file mode 100644 index 0000000000..92aeb56c06 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/tcfail110.hs @@ -0,0 +1,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 |