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

Copyright(C) 2014-2016 Ryan Scott
LicenseBSD-style (see the file LICENSE)
MaintainerRyan Scott
StabilityProvisional
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

TextShow.Data.Monoid

Contents

Description

Monomorphic Show functions for Monoid-related newtypes.

Since: 2

Synopsis

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

liftShowbDualPrec :: (Int -> a -> Builder) -> Int -> Dual a -> Builder Source #

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

Since: 3

liftShowbFirstPrec :: (Int -> a -> Builder) -> Int -> First a -> Builder Source #

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

Since: 3

liftShowbLastPrec :: (Int -> a -> Builder) -> Int -> Last a -> Builder Source #

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

Since: 3

liftShowbProductPrec :: (Int -> a -> Builder) -> Int -> Product a -> Builder Source #

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

Since: 3

liftShowbSumPrec :: (Int -> a -> Builder) -> Int -> Sum a -> Builder Source #

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

Since: 3

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

liftShowbAltPrec :: TextShow1 f => (Int -> a -> Builder) -> ([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: 3

Orphan instances

TextShow1 Dual Source # 

Methods

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

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

TextShow1 Sum Source # 

Methods

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

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

TextShow1 Product Source # 

Methods

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

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

TextShow1 First Source # 

Methods

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

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

TextShow1 Last Source # 

Methods

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

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

TextShow All Source # 
TextShow Any Source # 
TextShow a0 => TextShow (Dual a0) Source # 
TextShow a0 => TextShow (Sum a0) Source # 
TextShow a0 => TextShow (Product a0) Source # 
TextShow a0 => TextShow (First a0) Source # 
TextShow a0 => TextShow (Last a0) Source # 
TextShow1 f0 => TextShow1 (Alt * f0) Source # 

Methods

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

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

TextShow (f a) => TextShow (Alt * f a) Source # 

Methods

showbPrec :: Int -> Alt * f a -> Builder Source #

showb :: Alt * f a -> Builder Source #

showbList :: [Alt * f a] -> Builder Source #

showtPrec :: Int -> Alt * f a -> Text Source #

showt :: Alt * f a -> Text Source #

showtList :: [Alt * f a] -> Text Source #

showtlPrec :: Int -> Alt * f a -> Text Source #

showtl :: Alt * f a -> Text Source #

showtlList :: [Alt * f a] -> Text Source #