summaryrefslogtreecommitdiff
path: root/testsuite/tests/ado/T16135.hs
blob: ff8cc8588e68cd9e6a62dce0f48eb5ebd49f0c5e (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE ExistentialQuantification, ApplicativeDo #-}

module Bug where

data T f = forall a. MkT (f a)

runf :: forall f. Functor f => IO (T f)
runf = do
    return ()
    MkT fa <- runf
    return $ MkT fa