diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2013-09-22 16:59:08 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2013-09-22 18:32:50 +0200 |
commit | 0a5ecb536e0f25383cfeacc6f50b0d28be297da4 (patch) | |
tree | c57a8e802bfac1e2ab83f04d14e9e9caf0eeb48f /libraries/base/Data/Bits.hs | |
parent | 2642d9f6eac5879c7d38bc51726bede1bef77df4 (diff) | |
download | haskell-0a5ecb536e0f25383cfeacc6f50b0d28be297da4.tar.gz |
Add Haddock `/Since: 4.5.[01].0/` comments to symbols
This commit retroactively adds `/Since: 4.5.[01].0/` annotations to symbols
newly added/exposed in `base-4.5.[01].0` (as shipped with GHC 7.4.[12]).
See also 6368362f which adds the respective annotation for symbols newly
added in `base-4.7.0.0` (that goes together with GHC 7.8.1).
Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Diffstat (limited to 'libraries/base/Data/Bits.hs')
-rw-r--r-- | libraries/base/Data/Bits.hs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libraries/base/Data/Bits.hs b/libraries/base/Data/Bits.hs index 9eb024c456..2654a80699 100644 --- a/libraries/base/Data/Bits.hs +++ b/libraries/base/Data/Bits.hs @@ -185,7 +185,9 @@ class Eq a => Bits a where result is undefined for negative shift amounts and shift amounts greater or equal to the 'bitSize'. - Defaults to 'shiftL' unless defined explicitly by an instance. -} + Defaults to 'shiftL' unless defined explicitly by an instance. + + /Since: 4.5.0.0/ -} unsafeShiftL :: a -> Int -> a {-# INLINE unsafeShiftL #-} x `unsafeShiftL` i = x `shiftL` i @@ -212,7 +214,9 @@ class Eq a => Bits a where i.e. they fill the top bits with 1 if the @x@ is negative and with 0 otherwise. - Defaults to 'shiftR' unless defined explicitly by an instance. -} + Defaults to 'shiftR' unless defined explicitly by an instance. + + /Since: 4.5.0.0/ -} unsafeShiftR :: a -> Int -> a {-# INLINE unsafeShiftR #-} x `unsafeShiftR` i = x `shiftR` i @@ -238,7 +242,9 @@ class Eq a => Bits a where x `rotateR` i = x `rotate` (-i) {-| Return the number of set bits in the argument. This number is - known as the population count or the Hamming weight. -} + known as the population count or the Hamming weight. + + /Since: 4.5.0.0/ -} popCount :: a -> Int {-# MINIMAL (.&.), (.|.), xor, complement, |