summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T7238.hs
blob: 3639a8e089d6eae26d5bbe7cd35f34a2be1f83a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE ConstraintKinds, TypeFamilies #-}
module T7238 where

import GHC.Exts

class Pair p where
	type Ctxt p a :: Constraint
	l :: Ctxt p a => p a -> a

data Unit a = Unit

instance Pair Unit where
	type Ctxt Unit a = a ~ ()
	l _ = ()