You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 20, 2023. It is now read-only.
Attempt to compile basement with ghc 9.2.1-rc1 on ubuntu 20.04.x on amd64 reveals following issue:
[19 of 84] Compiling Basement.Numerical.Conversion ( Basement/Numerical/Conversion.hs, /export/home/karel/vcs/haskell-libraries/foundation/basement/dist-newstyle/build/x86_64-linux/ghc-9.2.0.20210821/basement-0.0.12/build/Basement/Numerical/Conversion.o, /export/home/karel/vcs/haskell-libraries/foundation/basement/dist-newstyle/build/x86_64-linux/ghc-9.2.0.20210821/basement-0.0.12/build/Basement/Numerical/Conversion.dyn_o )
Basement/Numerical/Conversion.hs:84:46: error:
• Couldn't match expected type ‘Word32#’ with actual type ‘Word#’
• In the first argument of ‘W32#’, namely
‘(uncheckedShiftRL# w64 32#)’
In the first argument of ‘Word32x2’, namely
‘(W32# (uncheckedShiftRL# w64 32#))’
In the expression:
Word32x2
(W32# (uncheckedShiftRL# w64 32#)) (W32# (narrow32Word# w64))
|
84 | word64ToWord32s (W64# w64) = Word32x2 (W32# (uncheckedShiftRL# w64 32#)) (W32# (narrow32Word# w64))
| ^^^^^^^^^^^^^^^^^^^^^^^^^
Basement/Numerical/Conversion.hs:84:81: error:
• Couldn't match expected type ‘Word32#’ with actual type ‘Word#’
• In the first argument of ‘W32#’, namely ‘(narrow32Word# w64)’
In the second argument of ‘Word32x2’, namely
‘(W32# (narrow32Word# w64))’
In the expression:
Word32x2
(W32# (uncheckedShiftRL# w64 32#)) (W32# (narrow32Word# w64))
|
84 | word64ToWord32s (W64# w64) = Word32x2 (W32# (uncheckedShiftRL# w64 32#)) (W32# (narrow32Word# w64))
| ^^^^^^^^^^^^^^^^^