
I’d just release a new version for GHC 9.2.1 forward (I know that solution is unpopular!) - particularly since Word32# seems “more correct" Otherwise I use cpphs.
On Nov 6, 2021, at 5:15 AM, Bruno Damour
wrote: Hello,
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# #else word32ToWordCompat# :: Word32# -> Word# word32ToWordCompat# x = x #endif 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 ?
Thanks
Bruno
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.