summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T13311.hs
blob: 811d6fe1f419a5206b7bc966e2ea9a27912cca0c (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE RankNTypes #-}
module T13311 where

f :: forall a. (Monoid a) => forall b. (Monoid b) => Maybe a -> Maybe b
f _ = mempty

g :: IO ()
g = do
  f
  putChar 'a'