BoxedRep UNPACK pragma

Alan & Kim Zimmerman alan.zimm at gmail.com
Sat Aug 12 14:24:54 UTC 2023


I have seen the following warning on master for some time

compiler/GHC/Core/TyCon.hs:1540:5: warning:
    • Ignoring unusable UNPACK pragma
        on the first argument of ‘BoxedRep’
    • In the definition of data constructor ‘BoxedRep’
      In the data type declaration for ‘PrimRep’
     |
1540 |   | BoxedRep {-# UNPACK #-} !(Maybe Levity) -- ^ Boxed, heap value
     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Is it something that needs to be fixed? Can the code be updated to remove
the warning?

Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20230812/0dc37339/attachment.html>


More information about the ghc-devs mailing list