summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T13819.hs
blob: 5244ddc8401a4e0d7b6008acbbce950b4db4a49c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE DeriveFunctor, TypeApplications #-}

module T13819 where

import Data.Coerce
import Control.Applicative

newtype A a = A (IO a)
  deriving Functor

instance Applicative A where
  pure = pure @(_ -> WrappedMonad A _) @(_ -> A _) pure

instance Monad A where