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

drvfail011.hs:8:1:
    No instance for (Eq a) arising from a use of ‘==’
    Possible fix: add (Eq a) to the context of the instance declaration
    In the expression: ((a1 == b1))
    In an equation for ‘==’: (==) (T1 a1) (T1 b1) = ((a1 == b1))
    When typechecking the code for  ‘==’
      in a standalone derived instance for ‘Eq (T a)’:
      To see the code I am typechecking, use -ddump-deriv
    In the instance declaration for ‘Eq (T a)’