summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail047.stderr
blob: c1c0dca619b58631869b0d14dec8dd3d63040a33 (plain)
1
2
3
4
5
6
7
8

tcfail047.hs:7:10: error:
    • Illegal instance declaration for ‘A (a, (b, c))’
        (All instance types must be of the form (T a1 ... an)
         where a1 ... an are *distinct type variables*,
         and each type variable appears at most once in the instance head.
         Use FlexibleInstances if you want to disable this.)
    • In the instance declaration for ‘A (a, (b, c))’