[GHC] #9214: UNPACK support for sum types

GHC ghc-devs at haskell.org
Fri Jun 20 12:41:57 UTC 2014


#9214: UNPACK support for sum types
-------------------------------------+------------------------------------
        Reporter:  mojojojo          |            Owner:
            Type:  feature request   |           Status:  new
        Priority:  normal            |        Milestone:
       Component:  Compiler          |          Version:  7.8.2
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by schyler):

 Smells fishy to me. Would create a pwr(N,2) number of denormalizations.

 Would be better to calculate the largest size of the fully unpacked type
 like a C compiler would for unions.

 o/t The behaviour of the trac for n^2 notation is really annoying!

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9214#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list