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

T4179.hs:26:16: error:
    • Couldn't match type ‘A2 (x (A2 (FCon x) -> A3 (FCon x)))’
                     with ‘A2 (FCon x)’
      Expected type: x (A2 (FCon x) -> A3 (FCon x))
                     -> A2 (FCon x) -> A3 (FCon x)
        Actual type: x (A2 (FCon x) -> A3 (FCon x))
                     -> A2 (x (A2 (FCon x) -> A3 (FCon x)))
                     -> A3 (x (A2 (FCon x) -> A3 (FCon x)))
      NB: ‘A2’ 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)