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

drvfail004.hs:8:12: error:
    • Could not deduce (Eq (Foo a b))
        arising from the 'deriving' clause of a data type declaration
      from the context: (Ord a, Ord b)
        bound by the deriving clause for ‘Ord (Foo a b)’
        at drvfail004.hs:8:12-14
      Possible fix:
        use a standalone 'deriving instance' declaration,
          so you can specify the instance context yourself
    • When deriving the instance for (Ord (Foo a b))