blaze-builder-0.3.1.0: Efficient buffered output.

Portabilitytested on GHC only
Stabilityexperimental
MaintainerSimon Meier <iridcode@gmail.com>
Safe HaskellSafe-Infered

Blaze.ByteString.Builder.Char.Utf8

Contents

Description

Writes and Builders for serializing Unicode characters using the UTF-8 encoding.

Synopsis

Writing UTF-8 encoded characters to a buffer

writeChar :: Char -> WriteSource

Write a UTF-8 encoded Unicode character to a buffer.

Creating Builders from UTF-8 encoded characters

fromChar :: Char -> BuilderSource

O(1). Serialize a Unicode character using the UTF-8 encoding.

fromString :: String -> BuilderSource

O(n). Serialize a Unicode String using the UTF-8 encoding.

fromShow :: Show a => a -> BuilderSource

O(n). Serialize a value by Showing it and UTF-8 encoding the resulting String.

fromText :: Text -> BuilderSource

O(n). Serialize a strict Unicode Text value using the UTF-8 encoding.

fromLazyText :: Text -> BuilderSource

O(n). Serialize a lazy Unicode Text value using the UTF-8 encoding.