summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T4179.stderr
blob: 3f88289e2314fb90f8af4088396cfb62d9abc209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

T4179.hs:26:16: error: [GHC-83865]
    • Couldn't match type: A3 (x (A2 (FCon x) -> A3 (FCon x)))
                     with: A3 (FCon x)
      Expected: x (A2 (FCon x) -> A3 (FCon x))
                -> A2 (FCon x) -> A3 (FCon x)
        Actual: x (A2 (FCon x) -> A3 (FCon x))
                -> A2 (x (A2 (FCon x) -> A3 (FCon x)))
                -> A3 (x (A2 (FCon x) -> A3 (FCon x)))
        NB: ‘A3’ is a non-injective type family
    • In the first argument of ‘foldDoC’, namely ‘op’
      In the expression: foldDoC op
      In an equation for ‘fCon’: fCon = foldDoC op
    • Relevant bindings include
        fCon :: Con x -> A2 (FCon x) -> A3 (FCon x)
          (bound at T4179.hs:26:1)