byteslice v0.2.0.0 Release Notes
Release Date: 2020-01-20 // about 4 years ago-
- ๐ Change behavior of
split
. This function previously had a special case for zero-length byte sequences to mirror the behaviorbytestring
's behavior. Now,split
returns a singleton list with the empty byte sequence in this case. - โ Add
splitNonEmpty
so that users who need to take advantage of the non-null guaranteesplit
provides can do so. - โ Add
splitU
andsplitInitU
for users who are going to split a byte sequence without and consume the results more than once. - ๐ Make the C code compile on platforms that do not have
rawmemchr
. - ๐ Rename
splitOnce
tosplit1
. - โ Add
split2
andsplit3
. - โ Add
equalsLatin{1,2,3,4,5,6,7}
- โ Add
ifoldl'
. - โ Add
hGet
andhPut
. - ๐ Move
Data.Bytes.Chunks
fromsmall-bytearray-builder
tobyteslice
. - ๐ Rename
Data.Bytes.Chunks.concat
toconcatU
(the U means unsliced), and add a newconcat
that returnsBytes
. - โ Add
fromBytes
,fromByteArray
, andunsafeCopy
toData.Bytes.Chunks
. - โ Add
hGetContents
toData.Bytes.Chunks
. - โ Add
isBytePrefixOf
andisByteSuffixOf
. - โ Add
replicate
andreplicateU
. - โ Add
Monoid
instance forBytes
. - โ Add
singleton
,doubleton
,tripleton
, and their unsliced variants. - ๐ Rename
copy
tounsafeCopy
. - โ Add
fromLatinString
. - ๐ Change the behavior of
fromAsciiString
to replace out-of-bounds codepoints with NUL. - โ Add
unsnoc
anduncons
.
- ๐ Change behavior of