text-show-3.10: Efficient conversion of values into Text
Copyright(C) 2014-2017 Ryan Scott
LicenseBSD-style (see the file LICENSE)
MaintainerRyan Scott
StabilityProvisional
PortabilityGHC
Safe HaskellSafe-Inferred
LanguageHaskell2010

TextShow.Data.List

Description

Exports showbListWith, showtListWith, and showtlListWith, and TextShow instances for lists.

Synopsis

Documentation

showbListWith :: (a -> Builder) -> [a] -> Builder Source #

Converts a list of values into a Builder in which the values are surrounded by square brackets and each value is separated by a comma. The function argument controls how each element is shown.

showbListWith showb is the default implementation of showbList save for a few special cases (e.g., String).

Since: 2

showtListWith :: (a -> Text) -> [a] -> Text Source #

Converts a list of values into a strict Text in which the values are surrounded by square brackets and each value is separated by a comma. The function argument controls how each element is shown.

Since: 3.4

showtlListWith :: (a -> Text) -> [a] -> Text Source #

Converts a list of values into a lazy Text in which the values are surrounded by square brackets and each value is separated by a comma. The function argument controls how each element is shown.

Since: 3.4

Orphan instances

TextShow1 [] Source #

Since: 2

Instance details

Methods

liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> [a] -> Builder Source #

liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [[a]] -> Builder Source #

TextShow a => TextShow [a] Source #

Since: 2

Instance details

Methods

showbPrec :: Int -> [a] -> Builder Source #

showb :: [a] -> Builder Source #

showbList :: [[a]] -> Builder Source #

showtPrec :: Int -> [a] -> Text Source #

showt :: [a] -> Text Source #

showtList :: [[a]] -> Text Source #

showtlPrec :: Int -> [a] -> Text Source #

showtl :: [a] -> Text Source #

showtlList :: [[a]] -> Text Source #