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

tcfail152.hs:10:14: error:
    • No instance for ‘Integral a’ arising from a use of ‘toInteger’
      Possible fix:
        add (Integral a) to the context of the data constructor ‘C’
    • In the expression: toInteger x
      In an equation for ‘test’: test (C x) = toInteger x