summaryrefslogtreecommitdiff
path: root/testsuite/tests/rep-poly/RepPolySum.stderr
blob: 89a8ef85a92775e0b4481cc824d6c17f4c4f0a16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

RepPolySum.hs:11:9: error: [GHC-55287]
    • The unboxed sum does not have a fixed runtime representation.
      Its type is:
        (# Int# | a #) :: TYPE ('SumRep '[ 'IntRep, rep])
    • In the expression: (# | bar () #)
      In an equation for ‘foo’:
          foo _
            = (# | bar () #)
            where
                bar :: () -> a
                bar _ = undefined

RepPolySum.hs:20:9: error: [GHC-55287]
    • The unboxed sum does not have a fixed runtime representation.
      Its type is:
        (# Int# | a #) :: TYPE ('SumRep '[ 'IntRep, rep])
    • In the expression: (# 17# | #)
      In an equation for ‘baz’: baz _ = (# 17# | #)