summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail218.stderr
blob: efb6c4c9d3d6a6442943aad0d682eb2d138c1314 (plain)
1
2
3
4
5
6
7
8
9
10
11

tcfail218.hs:16:5:
    Overlapping instances for C [a] Bool arising from a use of ‘foo’
    Matching instances:
      instance C [a] b -- Defined at tcfail218.hs:8:29
      instance C [Int] Bool -- Defined at tcfail218.hs:7:29
    (The choice depends on the instantiation of ‘a’
     To pick the first instance above, use IncoherentInstances
     when compiling the other instance declarations)
    In the expression: foo
    In an equation for ‘x’: x = foo