summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_compile/Simple14.stderr
blob: 6159b088986f55b713c21a65b83dc22ec45b9d58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

Simple14.hs:19:27: error:
    • Couldn't match type ‘z0’ with ‘n’
      Expected: EQ_ z0 z0
        Actual: EQ_ m n
        ‘z0’ is untouchable
          inside the constraints: Maybe m ~ Maybe n
          bound by a type expected by the context:
                     (Maybe m ~ Maybe n) => EQ_ z0 z0
          at Simple14.hs:19:26-41
      ‘n’ is a rigid type variable bound by
        the type signature for:
          foo :: forall m n. EQ_ (Maybe m) (Maybe n)
        at Simple14.hs:18:1-42
    • In the second argument of ‘eqE’, namely ‘(eqI :: EQ_ m n)’
      In the expression: x `eqE` (eqI :: EQ_ m n)
      In the first argument of ‘ntI’, namely
        ‘(\ x -> x `eqE` (eqI :: EQ_ m n))’
    • Relevant bindings include
        x :: EQ_ (Maybe m) (Maybe n) (bound at Simple14.hs:19:13)
        foo :: EQ_ (Maybe m) (Maybe n) (bound at Simple14.hs:19:1)