summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T20356.hs
blob: 6a847cb22a18ba2fbd6300b906ddb1f46544cd15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{-# LANGUAGE TypeFamilies, PolyKinds, ConstraintKinds #-}

module T20356 where

import GHC.Types

type family Id (a :: k -> Constraint) :: l -> Constraint
type instance Id f = f

type T :: Constraint -> Constraint
type T = Id Eq

data Proxy p = MkProxy

id' :: f a -> f a
id' x = x

z = id' (MkProxy @T)