[Haskell-cafe] ghc-9.2.1 unboxed types compatibility

Bruno Damour bruno at ruomad.net
Sat Nov 6 10:15:37 UTC 2021


A significant number of libraries are broken by the changes in unboxed types.

A lot of them are in the process (or already have) of adding compatibility layers to allow them to support the new version while preserving compatibility with older ones, introducing code like :

#if MIN_VERSION_base(4,16,0)
word32ToWordCompat# :: Word32# -> Word#
word32ToWordCompat# = word32ToWord#
word32ToWordCompat# :: Word32# -> Word#
word32ToWordCompat# x = x
for the functions they use (usually a small subset).

Some of the solutions appear to differ.

Is there a preferred way to make this consistently or/and avoid unnecessary code duplication ?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20211106/3e9c8d66/attachment.html>

More information about the Haskell-Cafe mailing list