summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorARATA Mizuki <minorinoki@gmail.com>2021-11-16 09:15:03 +0900
committerZubin Duggal <zubin.duggal@gmail.com>2022-05-09 13:38:54 +0530
commit6da799a4fec919f5c898afd953338ad8037a0041 (patch)
tree715988ac6eeb3786126f4ec28f200d9277d2efb8
parentbb7e0333aa8ea290ab620624294e22f621d0ce23 (diff)
downloadhaskell-6da799a4fec919f5c898afd953338ad8037a0041.tar.gz
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 (cherry picked from commit 16d86b97ee3056b54441e7dfd349477f32347a26)
-rw-r--r--libraries/base/GHC/Word.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/libraries/base/GHC/Word.hs b/libraries/base/GHC/Word.hs
index 7187817d06..a8c3735a31 100644
--- a/libraries/base/GHC/Word.hs
+++ b/libraries/base/GHC/Word.hs
@@ -1029,25 +1029,25 @@ byteSwap64 (W64# w#) = W64# (byteSwap# 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
#if WORD_SIZE_IN_BITS < 64
bitReverse64 :: Word64 -> Word64
bitReverse64 (W64# w#) = W64# (bitReverse64# w#)