summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail042.stderr
blob: 584d18910031629d3c278a8815c889a8067bc27f (plain)
1
2
3
4
5
6
7
8
9

tcfail042.hs:15:10:
    Could not deduce (Num a)
      arising from the superclasses of an instance declaration
    from the context (Eq a, Show a)
      bound by the instance declaration at tcfail042.hs:15:10-34
    Possible fix:
      add (Num a) to the context of the instance declaration
    In the instance declaration for ‘Bar [a]’