#2338: unpack primitive types by default in data? and NOUNPACK?
---------------------------------+------------------------------------------
    Reporter:  Isaac Dupree      |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  low               |    Milestone:  7.4.1       
   Component:  Compiler          |      Version:  6.8.2       
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:  Unknown     
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------
Changes (by dleuschner):

 * cc: leuschner@… (added)
  * failure:  => None/Unknown


Comment:

 I'd love this feature.  Currently we've got 559 data type definitions with
 more that 2800 fields in our project. Most fields are strict fields. We're
 using -funbox-strict-fields because that's what we want for ~95% of our
 strict fields. Sometimes we want boxed strict fields so we leave out the
 strictness annotation in the data type but we then have to change all
 "construction sites" to make sure that the field is strict.  If we had {-#
 NOUNPACK #-} we could leave the strictness annotation in place and still
 get a boxed field.  The other option, to explicitly unbox all of our >2800
 data constructor fields is not very appealing.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to