summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/T7939.stdout
blob: 0b41ebb2c6dd0f1a7b2b8a7947a77313c94efe32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class Foo (a :: k) where
  type family Bar (a :: k) b :: *
  	-- Defined at T7939.hs:6:4
Bar :: k -> * -> *
type family F a :: * 	-- Defined at T7939.hs:8:1
type instance F Int = Bool 	-- Defined at T7939.hs:9:15
F :: * -> *
type family G a :: *
  where G Int = Bool
  	-- Defined at T7939.hs:11:1
G :: * -> *
type family H (a :: Bool) :: Bool
  where H 'False = 'True
  	-- Defined at T7939.hs:14:1
H :: Bool -> Bool
type family J (a :: [k]) :: Bool
  where
    [k] J k '[] = 'False
    [k, (t :: [k]), (h :: k)] J k (h : t) = 'True
  	-- Defined at T7939.hs:17:1
J :: [k] -> Bool
type family K (a1 :: [a]) :: Maybe a
  where
    [a] K a '[] = 'Nothing
    [a, (t :: [a]), (h :: a)] K a (h : t) = 'Just h
  	-- Defined at T7939.hs:21:1
K :: [a] -> Maybe a