Copyright | (c) 2010 Simon Meier |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Simon Meier <iridcode@gmail.com> |
Stability | experimental |
Portability | tested on GHC only |
Safe Haskell | None |
Language | Haskell98 |
/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').
Write
s and Builder
s for serializing the lower 8-bits of characters.
This corresponds to what the bytestring
package offer in
Char8
.
Writing Latin-1 (ISO 8859-1) encodable characters to a buffer
Creating Builders from Latin-1 (ISO 8859-1) encodable characters
fromString :: String -> Builder Source
O(n). Serialize the lower 8-bits of all characters of a string
fromShow :: Show a => a -> Builder Source
O(n). Serialize a value by Show
ing it and serializing the lower 8-bits
of the resulting string.
fromText :: Text -> Builder Source
O(n). Serialize the lower 8-bits of all characters in the strict text.
fromLazyText :: Text -> Builder Source
O(n). Serialize the lower 8-bits of all characters in the lazy text.