summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T22645.hs
blob: ee5f03d180f092a631d26f73598838c733f94a2d (plain)
1
2
3
4
5
6
7
8
9
module T22645 where

import Data.Coerce

type T :: (* -> *) -> * -> *
data T m a = MkT (m a)

p :: Coercible a b => T Maybe a -> T Maybe b
p = coerce