summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T15515.hs
blob: 3630609827da742776d18a973f310e0cb9d01973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeInType #-}
module T15515 where

import Data.Kind
import Data.Proxy

class C a where
  c :: Proxy a

type family F

data D :: F -> Type

instance C (D :: F -> Type) where
  c = Proxy

c' :: Proxy (D :: F -> Type)
c' = c @(D :: F -> Type)