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

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

TextShow.Data.Monoid

Description

Monomorphic `Show` functions for `Monoid`-related newtypes.

Since: 2

Synopsis

- showbAllPrec :: Int -> All -> Builder
- showbAnyPrec :: Int -> Any -> Builder
- showbDualPrecWith :: (Int -> a -> Builder) -> Int -> Dual a -> Builder
- showbFirstPrecWith :: (Int -> a -> Builder) -> Int -> First a -> Builder
- showbLastPrecWith :: (Int -> a -> Builder) -> Int -> Last a -> Builder
- showbProductPrecWith :: (Int -> a -> Builder) -> Int -> Product a -> Builder
- showbSumPrecWith :: (Int -> a -> Builder) -> Int -> Sum a -> Builder
- showbAltPrec :: TextShow (f a) => Int -> Alt f a -> Builder
- showbAltPrecWith :: TextShow1 f => (Int -> a -> Builder) -> Int -> Alt f a -> Builder

# Documentation

showbAllPrec :: Int -> All -> Builder Source

Convert an `All` value to a `Builder` with the given precedence.

Since: 2

showbAnyPrec :: Int -> Any -> Builder Source

Convert an `Any` value to a `Builder` with the given precedence.

Since: 2

showbDualPrecWith :: (Int -> a -> Builder) -> Int -> Dual a -> Builder Source

Convert a `Dual` value to a `Builder` with the given show function and precedence.

Since: 2

showbFirstPrecWith :: (Int -> a -> Builder) -> Int -> First a -> Builder Source

Convert a `First` value to a `Builder` with the given show function and precedence.

Since: 2

showbLastPrecWith :: (Int -> a -> Builder) -> Int -> Last a -> Builder Source

Convert a `Last` value to a `Builder` with the given show function and precedence.

Since: 2

showbProductPrecWith :: (Int -> a -> Builder) -> Int -> Product a -> Builder Source

Convert a `Product` value to a `Builder` with the given show function and precedence.

Since: 2

showbSumPrecWith :: (Int -> a -> Builder) -> Int -> Sum a -> Builder Source

Convert a `Sum` value to a `Builder` with the given show function and precedence.

Since: 2

showbAltPrec :: TextShow (f a) => Int -> Alt f a -> Builder Source

Convert an `Alt` value to a `Builder` with the given precedence. This function is only available with `base-4.8.0.0` or later.

Since: 2

showbAltPrecWith :: TextShow1 f => (Int -> a -> Builder) -> Int -> Alt f a -> Builder Source

Convert an `Alt` value to a `Builder` with the given show function and precedence. This function is only available with `base-4.8.0.0` or later.

Since: 2