summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail164.stderr
blob: f961a145d8d4b315c666a3166f0691dd58dee444 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

tcfail164.hs:11:5: error: [GHC-08522]
    • Bad call to tagToEnum# at type a
        Specify the type by giving a type signature
        e.g. (tagToEnum# x) :: Bool
    • In the expression: tagToEnum# 0#
      In an equation for ‘f’: f = tagToEnum# 0#

tcfail164.hs:17:34: error: [GHC-49356]
    • Bad call to tagToEnum# at type Int
        Result type must be an enumeration type
    • In the expression: tagToEnum# value#
      In an equation for ‘readUnboxable’:
          readUnboxable (I# value#) = tagToEnum# value#
      In the instance declaration for ‘Unboxable Int’