BoxedRep UNPACK pragma
Brandon Allbery
allbery.b at gmail.com
Sat Aug 12 15:19:34 UTC 2023
The warning sounds correct to me: `Maybe` has two constructors?
On Sat, Aug 12, 2023 at 10:25 AM Alan & Kim Zimmerman
<alan.zimm at gmail.com> wrote:
>
> 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
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
--
brandon s allbery kf8nh
allbery.b at gmail.com
More information about the ghc-devs
mailing list