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

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

TextShow.Data.Monoid

Contents

Description

TextShow instances for Monoid-related newtypes.

Since: 2

Orphan instances

TextShow1 First #

Since: 2

Instance details

Methods

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

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

TextShow1 Last #

Since: 2

Instance details

Methods

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

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

TextShow1 Dual #

Since: 2

Instance details

Methods

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

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

TextShow1 Sum #

Since: 2

Instance details

Methods

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

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

TextShow1 Product #

Since: 2

Instance details

Methods

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

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

TextShow All #

Since: 2

Instance details

TextShow Any #

Since: 2

Instance details

TextShow a => TextShow (First a) #

Since: 2

Instance details

Methods

showbPrec :: Int -> First a -> Builder #

showb :: First a -> Builder #

showbList :: [First a] -> Builder #

showtPrec :: Int -> First a -> Text #

showt :: First a -> Text #

showtList :: [First a] -> Text #

showtlPrec :: Int -> First a -> Text #

showtl :: First a -> Text #

showtlList :: [First a] -> Text #

TextShow a => TextShow (Last a) #

Since: 2

Instance details

Methods

showbPrec :: Int -> Last a -> Builder #

showb :: Last a -> Builder #

showbList :: [Last a] -> Builder #

showtPrec :: Int -> Last a -> Text #

showt :: Last a -> Text #

showtList :: [Last a] -> Text #

showtlPrec :: Int -> Last a -> Text #

showtl :: Last a -> Text #

showtlList :: [Last a] -> Text #

TextShow a => TextShow (Dual a) #

Since: 2

Instance details

Methods

showbPrec :: Int -> Dual a -> Builder #

showb :: Dual a -> Builder #

showbList :: [Dual a] -> Builder #

showtPrec :: Int -> Dual a -> Text #

showt :: Dual a -> Text #

showtList :: [Dual a] -> Text #

showtlPrec :: Int -> Dual a -> Text #

showtl :: Dual a -> Text #

showtlList :: [Dual a] -> Text #

TextShow a => TextShow (Sum a) #

Since: 2

Instance details

Methods

showbPrec :: Int -> Sum a -> Builder #

showb :: Sum a -> Builder #

showbList :: [Sum a] -> Builder #

showtPrec :: Int -> Sum a -> Text #

showt :: Sum a -> Text #

showtList :: [Sum a] -> Text #

showtlPrec :: Int -> Sum a -> Text #

showtl :: Sum a -> Text #

showtlList :: [Sum a] -> Text #

TextShow a => TextShow (Product a) #

Since: 2

Instance details

TextShow1 f => TextShow1 (Alt f) #

Only available with base-4.8.0.0 or later.

Since: 2

Instance details

Methods

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

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

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

Only available with base-4.8.0.0 or later.

Since: 2

Instance details

Methods

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

showb :: Alt f a -> Builder #

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

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

showt :: Alt f a -> Text #

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

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

showtl :: Alt f a -> Text #

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