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

T4179.hs:26:16:
    Could not deduce (A3 (x (A2 (x (Con x)) -> A3 (x (Con x))))
                      ~ A3 (x (Con x)))
    from the context (Functor x, DoC (FCon x))
      bound by the type signature for
                 fCon :: (Functor x, DoC (FCon x)) =>
                         Con x -> A2 (FCon x) -> A3 (FCon x)
      at T4179.hs:26:1-17
    NB: `A3' is a type function, and may not be injective
    Expected type: x (A2 (x (Con x)) -> A3 (x (Con x)))
                   -> A2 (x (Con x)) -> A3 (x (Con x))
      Actual type: x (A2 (x (Con x)) -> A3 (x (Con x)))
                   -> A2 (x (A2 (x (Con x)) -> A3 (x (Con x))))
                   -> A3 (x (A2 (x (Con x)) -> A3 (x (Con x))))
    In the first argument of `foldDoC', namely `op'
    In the expression: foldDoC op
    In an equation for `fCon': fCon = foldDoC op