summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T9662.stderr
blob: 3c800183a1e1c7bef2339fda22866b1ef38496a8 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

T9662.hs:49:7: error:
    Couldn't match type ‘k’ with ‘n’
      ‘k’ is a rigid type variable bound by
          the type signature for:
          test :: Shape (((sh :. k) :. m) :. n)
                  -> Shape (((sh :. m) :. n) :. k)
          at T9662.hs:44:9
      ‘n’ is a rigid type variable bound by
          the type signature for:
          test :: Shape (((sh :. k) :. m) :. n)
                  -> Shape (((sh :. m) :. n) :. k)
          at T9662.hs:44:9
    Expected type: Exp (((sh :. m) :. n) :. k)
                   -> Exp (((sh :. k) :. m) :. n)
      Actual type: Exp (((sh :. k) :. m) :. n)
                   -> Exp (((sh :. k) :. m) :. n)
    In the second argument of ‘backpermute’, namely ‘id’
    In the expression:
      backpermute
        (modify
           (atom :. atom :. atom :. atom)
           (\ (sh :. k :. m :. n) -> (sh :. m :. n :. k)))
        id
    Relevant bindings include
      test :: Shape (((sh :. k) :. m) :. n)
              -> Shape (((sh :. m) :. n) :. k)
        (bound at T9662.hs:45:1)

T9662.hs:49:7: error:
    Couldn't match type ‘m’ with ‘k’
      ‘m’ is a rigid type variable bound by
          the type signature for:
          test :: Shape (((sh :. k) :. m) :. n)
                  -> Shape (((sh :. m) :. n) :. k)
          at T9662.hs:44:9
      ‘k’ is a rigid type variable bound by
          the type signature for:
          test :: Shape (((sh :. k) :. m) :. n)
                  -> Shape (((sh :. m) :. n) :. k)
          at T9662.hs:44:9
    Expected type: Exp (((sh :. m) :. n) :. k)
                   -> Exp (((sh :. k) :. m) :. n)
      Actual type: Exp (((sh :. k) :. m) :. n)
                   -> Exp (((sh :. k) :. m) :. n)
    In the second argument of ‘backpermute’, namely ‘id’
    In the expression:
      backpermute
        (modify
           (atom :. atom :. atom :. atom)
           (\ (sh :. k :. m :. n) -> (sh :. m :. n :. k)))
        id
    Relevant bindings include
      test :: Shape (((sh :. k) :. m) :. n)
              -> Shape (((sh :. m) :. n) :. k)
        (bound at T9662.hs:45:1)

T9662.hs:49:7: error:
    Couldn't match type ‘n’ with ‘m’
      ‘n’ is a rigid type variable bound by
          the type signature for:
          test :: Shape (((sh :. k) :. m) :. n)
                  -> Shape (((sh :. m) :. n) :. k)
          at T9662.hs:44:9
      ‘m’ is a rigid type variable bound by
          the type signature for:
          test :: Shape (((sh :. k) :. m) :. n)
                  -> Shape (((sh :. m) :. n) :. k)
          at T9662.hs:44:9
    Expected type: Exp (((sh :. m) :. n) :. k)
                   -> Exp (((sh :. k) :. m) :. n)
      Actual type: Exp (((sh :. k) :. m) :. n)
                   -> Exp (((sh :. k) :. m) :. n)
    In the second argument of ‘backpermute’, namely ‘id’
    In the expression:
      backpermute
        (modify
           (atom :. atom :. atom :. atom)
           (\ (sh :. k :. m :. n) -> (sh :. m :. n :. k)))
        id
    Relevant bindings include
      test :: Shape (((sh :. k) :. m) :. n)
              -> Shape (((sh :. m) :. n) :. k)
        (bound at T9662.hs:45:1)