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

T5498.hs:30:39:
    Could not coerce from ‘c a’ to ‘c (Down a)’
      because ‘c a’ and ‘c (Down a)’ are different types.
      arising from the coercion of the method ‘intIso’ from type
                   ‘forall (c :: * -> *). c a -> c Int’ to type
                   ‘forall (c :: * -> *). c (Down a) -> c Int’
    Possible fix:
      use a standalone 'deriving instance' declaration,
        so you can specify the instance context yourself
    When deriving the instance for (IntIso (Down a))