summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T9662.stderr
blob: 20e0084aa261bbfd9e3b0ac7991f28a8f7cccf15 (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

T9662.hs:49:8: error: [GHC-25897]
    • Couldn't match type ‘k’ with ‘Int’
      Expected: Exp (((sh :. k) :. m) :. n)
                -> Exp (((sh :. m) :. n) :. k)
        Actual: Exp
                  (Tuple (((Atom a0 :. Atom Int) :. Atom Int) :. Atom Int))
                -> Exp
                     (Plain (((Unlifted (Atom a0) :. Exp Int) :. Exp Int) :. Exp Int))
      ‘k’ is a rigid type variable bound by
        the type signature for:
          test :: forall sh k m n.
                  Shape (((sh :. k) :. m) :. n) -> Shape (((sh :. m) :. n) :. k)
        at T9662.hs:46:1-50
    • In the first argument of ‘backpermute’, namely
        ‘(modify
            (atom :. atom :. atom :. atom)
            (\ (sh :. k :. m :. n) -> (sh :. m :. n :. k)))’
      In the expression:
        backpermute
          (modify
             (atom :. atom :. atom :. atom)
             (\ (sh :. k :. m :. n) -> (sh :. m :. n :. k)))
          id
      In an equation for ‘test’:
          test
            = 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:47:1)