Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Builder
- byteString :: ByteString -> Builder
- byte :: Word8 -> Builder
- asciiIntegral :: Integral a => a -> Builder
- asciiChar :: Char -> Builder
- utf8Char :: Char -> Builder
- utf8Ord :: Int -> Builder
- utf8Text :: Text -> Builder
- utf8LazyText :: Text -> Builder
- intercalate :: (Foldable f, Monoid m) => m -> f m -> m
- length :: Builder -> Int
- toByteString :: Builder -> ByteString
- toLazyByteString :: Builder -> ByteString
Documentation
A binary-tree-based datastructure optimized for aggregation of bytestrings using the O(1) appending operation.
Declaration
Primitives
byteString :: ByteString -> Builder Source #
Lifts a bytestring into the builder.
Extras
asciiIntegral :: Integral a => a -> Builder Source #
utf8LazyText :: Text -> Builder Source #
intercalate :: (Foldable f, Monoid m) => m -> f m -> m Source #
Execution
toByteString :: Builder -> ByteString Source #
O(n). Converts the builder into a strict bytestring.
toLazyByteString :: Builder -> ByteString Source #
O(n). Converts the builder into a lazy bytestring.