summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T14246.stderr
blob: d6bfde7b5b2758b679b95b6504669de9bf8075ad (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
28

T14246.hs:18:5: error:
    • Illegal polymorphic type: forall (t :: v). f t
    • In the equations for closed type family ‘KLN’
      In the type family declaration for ‘KLN’

T14246.hs:22:27: error:
    • Couldn't match kind: 'S (KLN (f t))
                     with: KLN f
      Expected kind ‘Vect (KLN f) L’,
        but ‘Cons (Label (t :: v)) l’ has kind ‘Vect ('S (KLN (f t))) (*)’
    • In the second argument of ‘Reveal’, namely
        ‘(Cons (Label (t :: v)) l)’
      In the type family declaration for ‘Reveal’

T14246.hs:22:67: error:
    • Couldn't match kind ‘*’ with ‘L’
      Expected kind ‘Vect (KLN (f t)) L’,
        but ‘l’ has kind ‘Vect (KLN (f t)) (*)’
    • In the second argument of ‘Reveal’, namely ‘l’
      In the type ‘Reveal (f t) l’
      In the type family declaration for ‘Reveal’

T14246.hs:23:24: error:
    • Couldn't match kind ‘'Z’ with ‘KLN a’
      Expected kind ‘Vect (KLN a) L’, but ‘Nil’ has kind ‘Vect 'Z L’
    • In the second argument of ‘Reveal’, namely ‘Nil’
      In the type family declaration for ‘Reveal’