Skip to content

Commit

Permalink
Deprecate Data.ByteString.Lazy.Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
fumieval committed Jul 6, 2020
1 parent bced9b5 commit a273ead
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Add `takeWhileEnd`, `dropWhileEnd` and `strip` for strict bytestrings
* Add `IsList` instances
* Deprecate `Data.ByteString.Lazy.Builder`

0.10.10.1 – June 2020

Expand Down
6 changes: 3 additions & 3 deletions Data/ByteString/Lazy/Builder.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

-- | We decided to rename the Builder modules. Sorry about that.
--
-- The old names will hang about for at least once release cycle before we
-- deprecate them and then later remove them.
-- The old names will hang about for at least once release cycle and then later remove them.
--
module Data.ByteString.Lazy.Builder (
module Data.ByteString.Lazy.Builder
{-# DEPRECATED "Use Data.ByteString.Builder instead" #-} (
module Data.ByteString.Builder
) where

Expand Down
8 changes: 5 additions & 3 deletions Data/ByteString/Lazy/Builder/ASCII.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
-- In additon, the ASCII module has been merged into the main
-- "Data.ByteString.Builder" module.
--
-- The old names will hang about for at least once release cycle before we
-- deprecate them and then later remove them.
-- The old names will hang about for at least once release cycle and then later remove them.
--
module Data.ByteString.Lazy.Builder.ASCII (
module Data.ByteString.Lazy.Builder.ASCII
{-# DEPRECATED "Use Data.ByteString.Builder instead" #-} (
module Data.ByteString.Builder
, byteStringHexFixed
, lazyByteStringHexFixed
Expand All @@ -19,6 +19,8 @@ import qualified Data.ByteString.Lazy as L

byteStringHexFixed :: S.ByteString -> Builder
byteStringHexFixed = byteStringHex
{-# DEPRECATED byteStringHexFixed "Use byteStringHex instead" #-}

lazyByteStringHexFixed :: L.ByteString -> Builder
lazyByteStringHexFixed = lazyByteStringHex
{-# DEPRECATED lazyByteStringHexFixed "Use lazyByteStringHex instead" #-}
6 changes: 3 additions & 3 deletions Data/ByteString/Lazy/Builder/Extras.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

-- | We decided to rename the Builder modules. Sorry about that.
--
-- The old names will hang about for at least once release cycle before we
-- deprecate them and then later remove them.
-- The old names will hang about for at least once release cycle and then later remove them.
--
module Data.ByteString.Lazy.Builder.Extras (
module Data.ByteString.Lazy.Builder.Extras
{-# DEPRECATED "Use Data.ByteString.Builder.Extra instead" #-} (
module Data.ByteString.Builder.Extra
) where

Expand Down

0 comments on commit a273ead

Please sign in to comment.