summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail121.stderr
blob: 5618d844718e14755893f537b00c35e210c09eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

tcfail121.hs:13:9: error: [GHC-43085]
    • Overlapping instances for Foo [a] arising from a use of ‘op’
      Matching instance:
        instance [overlappable] Foo a => Foo [a]
          -- Defined at tcfail121.hs:9:31
      Potentially matching instance:
        instance [overlapping] Foo [Int] -- Defined at tcfail121.hs:10:30
      (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: op x
      In an equation for ‘foo’: foo x = op x