summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T2544.stderr
blob: 93d7746066ebd90a8551511d002f43af3e6887fe (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

T2544.hs:19:12: error:
    • Couldn't match type ‘IxMap r’ with ‘IxMap i1’
      Expected type: IxMap (l :|: r) [Int]
        Actual type: BiApp (IxMap l) (IxMap i1) [Int]
      NB: ‘IxMap’ is a non-injective type family
      The type variable ‘i1’ is ambiguous
    • In the expression: BiApp empty empty
      In an equation for ‘empty’: empty = BiApp empty empty
      In the instance declaration for ‘Ix (l :|: r)’
    • Relevant bindings include
        empty :: IxMap (l :|: r) [Int] (bound at T2544.hs:19:4)

T2544.hs:19:18: error:
    • Couldn't match type ‘IxMap i0’ with ‘IxMap l’
      Expected type: IxMap l [Int]
        Actual type: IxMap i0 [Int]
      NB: ‘IxMap’ is a non-injective type family
      The type variable ‘i0’ is ambiguous
    • In the first argument of ‘BiApp’, namely ‘empty’
      In the expression: BiApp empty empty
      In an equation for ‘empty’: empty = BiApp empty empty
    • Relevant bindings include
        empty :: IxMap (l :|: r) [Int] (bound at T2544.hs:19:4)