Hoogle Search
Within LTS Haskell 24.63 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fromByteString :: ByteString -> Builderblaze-builder Blaze.ByteString.Builder.ByteString Create a Builder denoting the same sequence of bytes as a strict ByteString. The Builder inserts large ByteStrings directly, but copies small ones to ensure that the generated chunks are large on average.
fromByteStringWith :: Int -> ByteString -> Builderblaze-builder Blaze.ByteString.Builder.ByteString Construct a Builder that copies the strict ByteStrings, if it is smaller than the threshold, and inserts it directly otherwise. For example, fromByteStringWith 1024 copies strict ByteStrings whose size is less or equal to 1kb, and inserts them directly otherwise. This implies that the average chunk-size of the generated lazy ByteString may be as low as 513 bytes, as there could always be just a single byte between the directly inserted 1025 byte, strict ByteStrings.
fromLazyByteString :: ByteString -> Builderblaze-builder Blaze.ByteString.Builder.ByteString Create a Builder denoting the same sequence of bytes as a lazy ByteString. The Builder inserts large chunks of the lazy ByteString directly, but copies small ones to ensure that the generated chunks are large on average.
fromLazyByteStringWith :: Int -> ByteString -> Builderblaze-builder Blaze.ByteString.Builder.ByteString Construct a Builder that uses the thresholding strategy of fromByteStringWith for each chunk of the lazy ByteString.
insertByteString :: ByteString -> Builderblaze-builder Blaze.ByteString.Builder.ByteString Construct a Builder that always inserts the strict ByteString directly as a chunk. This implies flushing the output buffer, even if it contains just a single byte. You should therefore use insertByteString only for large (> 8kb) ByteStrings. Otherwise, the generated chunks are too fragmented to be processed efficiently afterwards.
insertLazyByteString :: ByteString -> Builderblaze-builder Blaze.ByteString.Builder.ByteString Construct a Builder that inserts all chunks of the lazy ByteString directly.
writeByteString :: ByteString -> Writeblaze-builder Blaze.ByteString.Builder.ByteString Write a strict ByteString to a buffer.
fromHtmlEscapedByteString :: ByteString -> Builderblaze-builder Blaze.ByteString.Builder.Html.Word O(n). Serialize a HTML escaped ByteString.
fromHtmlEscapedLazyByteString :: ByteString -> Builderblaze-builder Blaze.ByteString.Builder.Html.Word O(n). Serialize a HTML escaped lazy ByteString.
-
RFC 4648-compliant Base16 encodings for ByteStrings This package provides support for encoding and decoding binary data according to base16 (see also RFC 4648) for strict (see Data.ByteString.Base16) and lazy ByteStrings (see Data.ByteString.Base16.Lazy). See the base16 package which provides superior encoding and decoding performance as well as support for lazy, short, and strict variants of Text and ByteString values. Additionally, see the base-encoding package which provides an uniform API providing conversion paths between more binary and textual types.