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

T1496.hs:10:32:
    Could not coerce from ‛c Int’ to ‛c Moo’
      because ‛c Int’ and ‛c Moo’ are different types.
      arising from the coercion of the method ‛isInt’ from type
                   ‛forall (c :: * -> *). c Int -> c Int’ to type
                   ‛forall (c :: * -> *). c Int -> c Moo’
    Possible fix:
      use a standalone 'deriving instance' declaration,
        so you can specify the instance context yourself
    When deriving the instance for (IsInt Moo)