blaze-builder-0.2.1.4: Efficient buffered output.Source codeContentsIndex
Blaze.ByteString.Builder.Char8
Portabilitytested on GHC only
Stabilityexperimental
MaintainerSimon Meier <iridcode@gmail.com>
Contents
Writing Latin-1 (ISO 8859-1) encodable characters to a buffer
Creating Builders from Latin-1 (ISO 8859-1) encodable characters
Description

Note: This package is intended for low-level use like implementing protocols. If you need to serialize Unicode characters use one of the UTF encodings (e.g. 'Blaze.ByteString.Builder.Char.UTF-8').

Writes and Builders for serializing the lower 8-bits of characters.

This corresponds to what the bytestring package offer in Data.ByteString.Char8.

Synopsis
writeChar :: Char -> Write
fromChar :: Char -> Builder
fromString :: String -> Builder
fromShow :: Show a => a -> Builder
fromText :: Text -> Builder
fromLazyText :: Text -> Builder
Writing Latin-1 (ISO 8859-1) encodable characters to a buffer
writeChar :: Char -> WriteSource
Write the lower 8-bits of a character to a buffer.
Creating Builders from Latin-1 (ISO 8859-1) encodable characters
fromChar :: Char -> BuilderSource
O(1). Serialize the lower 8-bits of a character.
fromString :: String -> BuilderSource
O(n). Serialize the lower 8-bits of all characters of a string
fromShow :: Show a => a -> BuilderSource
O(n). Serialize a value by Showing it and serializing the lower 8-bits of the resulting string.
fromText :: Text -> BuilderSource
O(n). Serialize the lower 8-bits of all characters in the strict text.
fromLazyText :: Text -> BuilderSource
O(n). Serialize the lower 8-bits of all characters in the lazy text.
Produced by Haddock version 2.6.1