| 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.List
Contents
Description
Exports showbListWith, showtListWith, and showtlListWith,
and TextShow instances for lists.
Synopsis
- showbListWith :: (a -> Builder) -> [a] -> Builder
- showtListWith :: (a -> Text) -> [a] -> Text
- showtlListWith :: (a -> Text) -> [a] -> Text
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.
is the default implementation of showbListWith showbshowbList 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 |
| TextShow a => TextShow [a] Source # | Since: 2 |
Methods showbPrec :: Int -> [a] -> Builder Source # showb :: [a] -> Builder Source # showbList :: [[a]] -> Builder Source # showtPrec :: Int -> [a] -> Text Source # showtList :: [[a]] -> Text Source # showtlPrec :: Int -> [a] -> Text Source # showtl :: [a] -> Text Source # showtlList :: [[a]] -> Text Source # | |