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 |
Exports showbListWith
, showtListWith
, and showtlListWith
,
and TextShow
instances for lists.
- 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
showb
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