Unpacking coercions

Ryan Scott ryan.gl.scott at gmail.com
Tue Sep 4 16:15:10 UTC 2018

In case this wasn't clear, the context of this discussion in this GHC
proposal [1], where David is trying to work around the fact that data types
with existential Coercible constraints do not support unpacking. (By
"unpacking", I mean putting an {-# UNPACK #-} pragma in front of a field of
that type does what you would expect.)

An example program which demonstrates the performance issue can be found
here [2]. That comment concerns unboxed equality vs. boxed equality, but
the same unpacking problems that affect boxed equality also affect

Ryan S.
[1] https://github.com/ghc-proposals/ghc-proposals/pull/116
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20180904/f0a9b31d/attachment.html>

More information about the ghc-devs mailing list