An efficient compact, immutable byte string type (both strict and lazy) suitable for binary or 8-bit character data.
OTHER License
Bot releases are hidden (Show)
ByteString
, removing offset
PS
constructor has been turned into a pattern synonym that is available with GHC >= 8.0 for backwards compatibility. Consider adding if !impl(ghc >=8.0) { build-depends: bytestring < 0.11 }
to packages, which use PS
and still support GHC < 8.0.ForeignPtrContents
of nullForeignPtr
with FinalPtr
instead of a bottom
bytestring-0.11
is compatible with GHC >= 7.0, note that bytestring < 0.11
will be unbuildable with GHC >= 9.0.findSubstring
and findSubstrings
Data.ByteString.Builder
ByteString
.indexMaybe
and synonym (!?)
for indexing that returns Maybe
{take,drop}While ({=,/}= x)
any (== x)
and all (/= x)
findInd{ex,ices} (== x)
findIndices
Data.ByteString.Lazy.{from,to}Strict
from Data.ByteString
Data.ByteString.Builder{,.Extra}
instead of Data.ByteString.Lazy.Builder{,.ASCII,.Extras}
.Data.ByteString.Char8.{,h}putStrLn
instead of Data.ByteString.{,h}putStrLn
and Data.ByteString.Lazy.Char8.putStrLn
instead of Data.ByteString.Char8.putStrLn
.Data.ByteString.break (== x)
instead of Data.ByteString.breakByte x
.Data.ByteString.Internal.accursedUnutterablePerformIO
instead of Data.ByteString.Internal.inlinePerformIO
.Published by sjakobi about 4 years ago
takeWhileEnd
and dropWhileEnd
to Data.ByteString
and Data.ByteString.Char8
, and add dropSpace
and strip
to Data.ByteString.Char8
findIndexEnd
to Data.ByteString
and Data.ByteString.Lazy
partition
to Data.ByteString.Char8
and Data.ByteString.Lazy.Char8
IsList
instances for strict and lazy ByteString
and for ShortByteString
createUpToN'
and unsafeCreateUpToN'
to Data.ByteString.Internal
boundedPrim
to Data.ByteString.Builder.Prim.Internal
and deprecate boudedPrim
Data.ByteString.Lazy.Builder
and Data.ByteString.Lazy.Builder.{ASCII,Extras}
modulesData.ByteString.Lazy.length