summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/typecheck/should_compile/tc203.hs
blob: 257989645848eeed8d989d547c4dece5e52d77d7 (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE Rank2Types #-}

-- Check that we can have a forall after a forall

module Foo4 where

type AnyE a = forall err. Either err a

foo :: Monad m => AnyE (m t)
foo = undefined