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

Copyright(C) 2014-2015 Ryan Scott
LicenseBSD-style (see the file LICENSE)
MaintainerRyan Scott
StabilityExperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell98

Text.Show.Text.Data.Char

Description

Monomorphic Show functions for Char and String.

Since: 0.3

Synopsis

Documentation

showbChar :: Char -> Builder Source

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

Since: 0.3

showbLitChar :: Char -> Builder Source

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

Since: 0.3

showbString :: String -> Builder Source

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

Since: 0.3

showbLitString :: String -> Builder Source

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

Since: 0.3

asciiTabB :: Array Int Builder Source

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

Since: 0.5

newtype LitChar Source

The Text Show instance for LitChar is like that of a regular Char, except it is not escaped by single quotes. That is,

showb (LitChar c) = showbLitChar c

Since: 0.5

Constructors

LitChar 

Fields

getLitChar :: Char
 

newtype LitString Source

The Text Show instance for LitString is like that of a regular String, except it is not escaped by double quotes. That is,

showb (LitString s) = showbLitString s

Since: 0.5

Constructors

LitString 

Fields

getLitString :: String