summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T15793.hs
blob: 4e96d83f10a6399f34ea1696cd4f9905a1acefef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{-# Language RankNTypes       #-}
{-# Language TypeFamilies     #-}
{-# Language TypeApplications #-}
{-# Language PolyKinds        #-}

module T15793 where
import Data.Kind

type family
  F1 (a :: Type) :: Type where
  F1 a = Maybe a

f1 :: F1 a
f1 = Nothing

type family
  F2 :: forall (a :: Type). Type where
  F2 @a = Maybe a