Add unsafePackMallocCStringLen
Add a NOINLINE [1] for zipWith as it is matched in a RULE
GHC correctly warns that RULES cannot reliably match on functions
that get inlined too early. Spotted by Paolo Capriotti.
Implemented unsnoc, unsafeInit and unsafeLast
Fix property in the documentation for unfoldrN
Spotted by Dan Burton
Fix implementation of hPutNonBlocking for non-GHC
Spotted by Dan Burton
Remove the old memcpy_ptr_baoff / memcpy alias
Export hGetSome from Data.ByteString.Char8
Use binary mode for Char8 file functions
It doesn't actually make any difference these days, but it's better
to be explicit and consistent about it here.
Add internal functions createUptoN and createUptoN'
Just tidies things up, not exported for now.
Rename Builder modules
Just Data.ByteString.Builder rather than Data.ByteString.Lazy.Builder
And instead of BasicEncoding, just Prim, so Data.ByteString.Builder.Prim
And use Extra instead of Extras
Simplify the implementation of unsnoc
We have to do two traversals either way, no saving.
Rename Encoding types to Prim
BoundedEncoding -> BoundedPrim
FixedEncoding -> FixedPrim
Also rename various operations to match
Re-export all of the D.B.Builder.ASCII via top level D.B.Builder
Decided it's better to have a few biger builder modules than to confuse
users with loads of Builder.* modules.
Expose the Data.ByteString.Builder.Prim module
Don't export builder prim testing support functions
Now that it's an exposed API
Document for the Char8 I/O that it does not respect the newline mode
though that this is considered a flaw and may be changed in future.
Go back to using short names for eitherB, condB combinators
Rename byteStringHexFixed to just byteStringHex
The Fixed added nothing in this case, as the alternative would be silly.
Adjust documentation to talk about builder primitives rather than encodings
Minor doc addition, spelling fixes