Skip to content

Commit

Permalink
Update version in docs and update Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
FintanH authored and Cole Miller committed Aug 21, 2020
1 parent d755b17 commit 4ddbfed
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* [Add `IsList` instances for strict and lazy `ByteString` and for `ShortByteString`](https://github.com/haskell/bytestring/pull/219)
* [Add `createUpToN'` and `unsafeCreateUpToN'` to `Data.ByteString.Internal`](https://github.com/haskell/bytestring/pull/245)
* [Add `boundedPrim` to `Data.ByteString.Builder.Prim.Internal` and deprecate `boudedPrim`](https://github.com/haskell/bytestring/pull/246)
* Add `indexMaybe` for indexing that returns `Maybe`
* Add `indexMaybe` and synonym `(!?)` for indexing that returns `Maybe`
* [Deprecate the `Data.ByteString.Lazy.Builder` and `Data.ByteString.Lazy.Builder.{ASCII,Extras}` modules](https://github.com/haskell/bytestring/pull/250)
* [Fix documented complexity of `Data.ByteString.Lazy.length`](https://github.com/haskell/bytestring/pull/255)
* [Assorted documentation fixes](https://github.com/haskell/bytestring/pull/248)
Expand Down
4 changes: 2 additions & 2 deletions Data/ByteString.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ index ps n
--
-- > 0 <= n < length bs
--
-- @since 0.10.10.0
-- @since 0.10.10.1
indexMaybe :: ByteString -> Int -> Maybe Word8
indexMaybe ps n
| n < 0 = Nothing
Expand All @@ -1115,7 +1115,7 @@ indexMaybe ps n
--
-- > 0 <= n < length bs
--
-- @since 0.10.10.0
-- @since 0.10.10.1
(!?) :: ByteString -> Int -> Maybe Word8
(!?) = indexMaybe
{-# INLINE (!?) #-}
Expand Down
4 changes: 2 additions & 2 deletions Data/ByteString/Char8.hs
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ index = (w2c .) . B.index
--
-- > 0 <= n < length bs
--
-- @since 0.10.10.0
-- @since 0.10.10.1
indexMaybe :: ByteString -> Int -> Maybe Char
indexMaybe = ((fmap w2c) .) . B.indexMaybe
{-# INLINE indexMaybe #-}
Expand All @@ -659,7 +659,7 @@ indexMaybe = ((fmap w2c) .) . B.indexMaybe
--
-- > 0 <= n < length bs
--
-- @since 0.10.10.0
-- @since 0.10.10.1
(!?) :: ByteString -> Int -> Maybe Char
(!?) = indexMaybe
{-# INLINE (!?) #-}
Expand Down
4 changes: 2 additions & 2 deletions Data/ByteString/Lazy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ index cs0 i = index' cs0 i
--
-- > 0 <= n < length bs
--
-- @since 0.10.10.0
-- @since 0.10.10.1
indexMaybe :: ByteString -> Int64 -> Maybe Word8
indexMaybe _ i | i < 0 = Nothing
indexMaybe cs0 i = index' cs0 i
Expand All @@ -915,7 +915,7 @@ indexMaybe cs0 i = index' cs0 i
--
-- > 0 <= n < length bs
--
-- @since 0.10.10.0
-- @since 0.10.10.1
(!?) :: ByteString -> Int64 -> Maybe Word8
(!?) = indexMaybe
{-# INLINE (!?) #-}
Expand Down
4 changes: 2 additions & 2 deletions Data/ByteString/Lazy/Char8.hs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ index = (w2c .) . L.index
--
-- > 0 <= n < length bs
--
-- @since 0.10.10.0
-- @since 0.10.10.1
indexMaybe :: ByteString -> Int64 -> Maybe Char
indexMaybe = ((fmap w2c) .) . L.indexMaybe
{-# INLINE indexMaybe #-}
Expand All @@ -542,7 +542,7 @@ indexMaybe = ((fmap w2c) .) . L.indexMaybe
--
-- > 0 <= n < length bs
--
-- @since 0.10.10.0
-- @since 0.10.10.1
(!?) :: ByteString -> Int64 -> Maybe Char
(!?) = indexMaybe
{-# INLINE (!?) #-}
Expand Down
4 changes: 2 additions & 2 deletions Data/ByteString/Short/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ index sbs i
--
-- > 0 <= n < length bs
--
-- @since 0.10.10.0
-- @since 0.10.10.1
indexMaybe :: ShortByteString -> Int -> Maybe Word8
indexMaybe sbs i
| i >= 0 && i < length sbs = Just $ unsafeIndex sbs i
Expand All @@ -230,7 +230,7 @@ indexMaybe sbs i
--
-- > 0 <= n < length bs
--
-- @since 0.10.10.0
-- @since 0.10.10.1
(!?) :: ShortByteString -> Int -> Maybe Word8
(!?) = indexMaybe

Expand Down

0 comments on commit 4ddbfed

Please sign in to comment.