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.Char

Description

Monomorphic `TextShow` functions for `Char` and `String`.

Since: 2

Synopsis

- showbChar :: Char -> Builder
- showbLitChar :: Char -> Builder
- showbString :: String -> Builder
- showbLitString :: String -> Builder
- showbGeneralCategory :: GeneralCategory -> Builder
- asciiTabB :: Array Int Builder

# Documentation

showbChar :: Char -> Builder Source

Convert a `Char` to a `Builder` (surrounded by single quotes).

Since: 2

showbLitChar :: Char -> Builder Source

Convert a `Char` to a `Builder` (without single quotes).

Since: 2

showbString :: String -> Builder Source

Convert a `String` to a `Builder` (surrounded by double quotes).

Since: 2

showbLitString :: String -> Builder Source

Convert a `String` to a `Builder` (without double quotes).

Since: 2

showbGeneralCategory :: GeneralCategory -> Builder Source

Convert a `GeneralCategory` to a `Builder`.

Since: 2

asciiTabB :: Array Int Builder Source

A table of ASCII control characters that needs to be escaped with a backslash.

Since: 2