Skip to content

Don't invoke dataConSrcToImplBang on newtypes

Ryan Scott requested to merge RyanGlScott/ghc:wip/T16141 into master

Trac #16141 was caused by StrictData sneaking in some unwanted unpacking on the field of a newtype due to the dataConSrcToImplBang function (which really only makes sense for data types) always being invoked from mkDataConRep. Solution: don't invoke dataConSrcToImplBang when dealing with newtypes.

Merge request reports