diff --git a/Changelog.md b/Changelog.md index 5aae20e1..15abe43d 100644 --- a/Changelog.md +++ b/Changelog.md @@ -5,15 +5,35 @@ * This allows utilities like `syb:Data.Generics.Text.gread` to be meaningfully used at these types containing `ByteString`s. * [`fromListN` in `instance IsList ByteString` truncates input list if it's longer than the size hint](https://github.com/haskell/bytestring/pull/672) + + +[0.12.3.0] — TBA 2025 - [0.12.2.0] — October 2024 diff --git a/Data/ByteString/Short/Internal.hs b/Data/ByteString/Short/Internal.hs index 21dc2587..6c96cc98 100644 --- a/Data/ByteString/Short/Internal.hs +++ b/Data/ByteString/Short/Internal.hs @@ -455,6 +455,8 @@ toShortIO (BS fptr len) = do -- | A simple wrapper around 'fromShort' that wraps the strict 'ByteString' as -- a one-chunk 'LBS.LazyByteString'. +-- +-- @since 0.12.3.0 lazyFromShort :: ShortByteString -> LBS.ByteString lazyFromShort = LBS.fromStrict . fromShort @@ -464,6 +466,7 @@ lazyFromShort = LBS.fromStrict . fromShort -- used only with sufficiently short lazy ByteStrings. The entire lazy -- ByteString is brought into memory before a copy is made. -- +-- @since 0.12.3.0 lazyToShort :: LBS.ByteString -> ShortByteString lazyToShort LBS.Empty = empty lazyToShort lbs = unsafeDupablePerformIO $ do