byteslice v0.2.0.0 Release Notes

Release Date: 2020-01-20 // over 2 years ago
    • ๐Ÿ”„ Change behavior of split. This function previously had a special case for zero-length byte sequences to mirror the behavior bytestring'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 guarantee split provides can do so.
    • โž• Add splitU and splitInitU 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 to split1.
    • โž• Add split2 and split3.
    • โž• Add equalsLatin{1,2,3,4,5,6,7}
    • โž• Add ifoldl'.
    • โž• Add hGet and hPut.
    • ๐Ÿ— Move Data.Bytes.Chunks from small-bytearray-builder to byteslice.
    • ๐Ÿ“‡ Rename Data.Bytes.Chunks.concat to concatU (the U means unsliced), and add a new concat that returns Bytes.
    • โž• Add fromBytes, fromByteArray, and unsafeCopy to Data.Bytes.Chunks.
    • โž• Add hGetContents to Data.Bytes.Chunks.
    • โž• Add isBytePrefixOf and isByteSuffixOf.
    • โž• Add replicate and replicateU.
    • โž• Add Monoid instance for Bytes.
    • โž• Add singleton, doubleton, tripleton, and their unsliced variants.
    • ๐Ÿ“‡ Rename copy to unsafeCopy.
    • โž• Add fromLatinString.
    • ๐Ÿ”„ Change the behavior of fromAsciiString to replace out-of-bounds codepoints with NUL.
    • โž• Add unsnoc and uncons.