From 16d86b97ee3056b54441e7dfd349477f32347a26 Mon Sep 17 00:00:00 2001 From: ARATA Mizuki <minorinoki@gmail.com> Date: Tue, 16 Nov 2021 09:15:03 +0900 Subject: [PATCH] bitReverse functions in GHC.Word are since base-4.14.0.0, not 4.12.0.0 They were added in 33173a51c77d9960d5009576ad9b67b646dfda3c, which constitutes GHC 8.10.1 / base-4.14.0.0 --- libraries/base/GHC/Word.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/base/GHC/Word.hs b/libraries/base/GHC/Word.hs index 408dede2d34b..1dc049785688 100644 --- a/libraries/base/GHC/Word.hs +++ b/libraries/base/GHC/Word.hs @@ -878,25 +878,25 @@ byteSwap64 (W64# w#) = W64# (byteSwap64# w#) -- | Reverse the order of the bits in a 'Word8'. -- --- @since 4.12.0.0 +-- @since 4.14.0.0 bitReverse8 :: Word8 -> Word8 bitReverse8 (W8# w#) = W8# (wordToWord8# (bitReverse8# (word8ToWord# w#))) -- | Reverse the order of the bits in a 'Word16'. -- --- @since 4.12.0.0 +-- @since 4.14.0.0 bitReverse16 :: Word16 -> Word16 bitReverse16 (W16# w#) = W16# (wordToWord16# (bitReverse16# (word16ToWord# w#))) -- | Reverse the order of the bits in a 'Word32'. -- --- @since 4.12.0.0 +-- @since 4.14.0.0 bitReverse32 :: Word32 -> Word32 bitReverse32 (W32# w#) = W32# (wordToWord32# (bitReverse32# (word32ToWord# w#))) -- | Reverse the order of the bits in a 'Word64'. -- --- @since 4.12.0.0 +-- @since 4.14.0.0 bitReverse64 :: Word64 -> Word64 bitReverse64 (W64# w#) = W64# (bitReverse64# w#) -- GitLab