text-show-2.1.1: Efficient conversion of values into Text

Copyright | (C) 2014-2015 Ryan Scott
License | BSD-style (see the file LICENSE)
Maintainer | Ryan Scott
Stability | Provisional
Portability | GHC
Safe Haskell | None
Language | Haskell2010

TextShow.Data.Text

Description

Monomorphic `TextShow` functions for `Text` types.

Since: 2

Synopsis

- showbText :: Text -> Builder
- showbTextLazy :: Text -> Builder
- showbBuilder :: Builder -> Builder
- showbI16Prec :: Int -> I16 -> Builder
- showbUnicodeException :: UnicodeException -> Builder
- showbDecodingPrec :: Int -> Decoding -> Builder
- showbSizePrec :: Int -> Size -> Builder

# Documentation

showbText :: Text -> Builder Source

Convert a strict `Text` to a `Builder`. `showbText` should not be confused with `fromText`, as `showbText` escapes certain characters (such as double quotes).

Since: 2

showbTextLazy :: Text -> Builder Source

Convert a lazy `Text` to a `Builder`. `showbTextLazy` should not be confused with `fromTextLazy`, as `showbTextLazy` escapes certain characters (such as double quotes).

Since: 2

showbBuilder :: Builder -> Builder Source

Show a `Builder` as if it were a `String` (i.e., escape certain characters, such as double quotes).

Since: 2

showbI16Prec :: Int -> I16 -> Builder Source

Convert an `I16` value to a `Builder` with the given precedence.

Since: 2

showbUnicodeException :: UnicodeException -> Builder Source

Convert a `UnicodeException` to a `Builder`.

Since: 2

showbDecodingPrec :: Int -> Decoding -> Builder Source

Convert a `Decoding` value to a `Builder` with the given precedence. This function is only available with `text-1.0.0.0` or later.

Since: 2

showbSizePrec :: Int -> Size -> Builder Source

Convert a `Size` value to a `Builder` with the given precedence. This function is only available with `text-1.1.0.0` or later.

Since: 2