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

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

TextShow.Data.Char

Contents

- Orphan instances

Description

`TextShow` instances and monomorphic 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

# Orphan instances

TextShow Char Source # | Since: 2
Methods showbPrec :: Int -> Char -> Builder Source # showb :: Char -> Builder Source # showbList :: [Char] -> Builder Source # showtPrec :: Int -> Char -> Text Source # showt :: Char -> Text Source # showtList :: [Char] -> Text Source # showtlPrec :: Int -> Char -> Text Source # showtl :: Char -> Text Source # showtlList :: [Char] -> Text Source #
TextShow GeneralCategory Source # | Since: 2

Methods

showbPrec :: Int -> GeneralCategory -> Builder Source #

showb :: GeneralCategory -> Builder Source #

showbList :: [GeneralCategory] -> Builder Source #

showtPrec :: Int -> GeneralCategory -> Text Source #

showt :: GeneralCategory -> Text Source #

showtList :: [GeneralCategory] -> Text Source #

showtlPrec :: Int -> GeneralCategory -> Text Source #

showtl :: GeneralCategory -> Text Source #

showtlList :: [GeneralCategory] -> Text Source #