text-show-3.7.5: 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

Contents

Description

Efficiently convert from values to Text via Builders.

Since: 2

Synopsis

The TextShow classes

TextShow

class TextShow a where #

Conversion of values to Text. Because there are both strict and lazy Text variants, the TextShow class deliberately avoids using Text in its functions. Instead, showbPrec, showb, and showbList all return Builder, an efficient intermediate form that can be converted to either kind of Text.

Builder is a Monoid, so it is useful to use the mappend (or <>) function to combine Builders when creating TextShow instances. As an example:

import Data.Semigroup
import TextShow

data Example = Example Int Int
instance TextShow Example where
    showb (Example i1 i2) = showb i1 <> showbSpace <> showb i2

If you do not want to create TextShow instances manually, you can alternatively use the TextShow.TH module to automatically generate default TextShow instances using Template Haskell, or the TextShow.Generic module to quickly define TextShow instances using GHC.Generics.

Since: 2

Minimal complete definition

showbPrec | showb

Methods

showbPrec #

Arguments

:: Int

The operator precedence of the enclosing context (a number from 0 to 11). Function application has precedence 10.

-> a

The value to be converted to a Builder.

-> Builder 

Convert a value to a Builder with the given predence.

Since: 2

showb #

Arguments

:: a

The value to be converted to a Builder.

-> Builder 

Converts a value to a strict Text. If you hand-define this, it should satisfy:

showb = showbPrec 0

Since: 2

showbList #

Arguments

:: [a]

The list of values to be converted to a Builder.

-> Builder 

Converts a list of values to a Builder. By default, this is defined as 'showbList = showbListWith showb, but it can be overridden to allow for specialized displaying of lists (e.g., lists of Chars).

Since: 2

showtPrec #

Arguments

:: Int

The operator precedence of the enclosing context (a number from 0 to 11). Function application has precedence 10.

-> a

The value to be converted to a strict Text.

-> Text 

Converts a value to a strict Text with the given precedence. This can be overridden for efficiency, but it should satisfy:

showtPrec p = toStrict . showtlPrec p

Since: 3

showt #

Arguments

:: a

The value to be converted to a strict Text.

-> Text 

Converts a value to a strict Text. This can be overridden for efficiency, but it should satisfy:

showt = showtPrec 0
showt = toStrict . showtl

The first equation is the default definition of showt.

Since: 3

showtList #

Arguments

:: [a]

The list of values to be converted to a strict Text.

-> Text 

Converts a list of values to a strict Text. This can be overridden for efficiency, but it should satisfy:

showtList = toStrict . showtlList

Since: 3

showtlPrec #

Arguments

:: Int

The operator precedence of the enclosing context (a number from 0 to 11). Function application has precedence 10.

-> a

The value to be converted to a lazy Text.

-> Text 

Converts a value to a lazy Text with the given precedence. This can be overridden for efficiency, but it should satisfy:

showtlPrec p = toLazyText . showbPrec p

Since: 3

showtl #

Arguments

:: a

The value to be converted to a lazy Text.

-> Text 

Converts a value to a lazy Text. This can be overridden for efficiency, but it should satisfy:

showtl = showtlPrec 0
showtl = toLazyText . showb

The first equation is the default definition of showtl.

Since: 3

showtlList #

Arguments

:: [a]

The list of values to be converted to a lazy Text.

-> Text 

Converts a list of values to a lazy Text. This can be overridden for efficiency, but it should satisfy:

showtlList = toLazyText . showbList

Since: 3

Instances
TextShow Bool #

Since: 2

Instance details

Defined in TextShow.Data.Bool

TextShow Char #

Since: 2

Instance details

Defined in TextShow.Data.Char

TextShow Double #

Since: 2

Instance details

Defined in TextShow.Data.Floating

TextShow Float #

Since: 2

Instance details

Defined in TextShow.Data.Floating

TextShow Int #

Since: 2

Instance details

Defined in TextShow.Data.Integral

TextShow Int8 #

Since: 2

Instance details

Defined in TextShow.Data.Integral

TextShow Int16 #

Since: 2

Instance details

Defined in TextShow.Data.Integral

TextShow Int32 #

Since: 2

Instance details

Defined in TextShow.Data.Integral

TextShow Int64 #

Since: 2

Instance details

Defined in TextShow.Data.Integral

TextShow Integer #

Since: 2

Instance details

Defined in TextShow.Data.Integral

TextShow Natural #

Since: 2

Instance details

Defined in TextShow.Numeric.Natural

TextShow Ordering #

Since: 2

Instance details

Defined in TextShow.Data.Ord

TextShow Word #

Since: 2

Instance details

Defined in TextShow.Data.Integral

TextShow Word8 #

Since: 2

Instance details

Defined in TextShow.Data.Integral

TextShow Word16 #

Since: 2

Instance details

Defined in TextShow.Data.Integral

TextShow Word32 #

Since: 2

Instance details

Defined in TextShow.Data.Integral

TextShow Word64 #

Since: 2

Instance details

Defined in TextShow.Data.Integral

TextShow CallStack #

Since: 3.0.1

Instance details

Defined in TextShow.GHC.Stack

TextShow SomeTypeRep #

Only available with base-4.10.0.0 or later.

Since: 3.6

Instance details

Defined in TextShow.Data.Typeable

TextShow () #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> () -> Builder #

showb :: () -> Builder #

showbList :: [()] -> Builder #

showtPrec :: Int -> () -> Text #

showt :: () -> Text #

showtList :: [()] -> Text #

showtlPrec :: Int -> () -> Text #

showtl :: () -> Text #

showtlList :: [()] -> Text #

TextShow TyCon #

Since: 2

Instance details

Defined in TextShow.Data.Typeable

TextShow Module #

Only available with base-4.9.0.0 or later.

Since: 3

Instance details

Defined in TextShow.Data.Typeable

TextShow TrName #

Only available with base-4.9.0.0 or later.

Since: 3

Instance details

Defined in TextShow.Data.Typeable

TextShow Handle #

Since: 2

Instance details

Defined in TextShow.System.IO

TextShow Unique # 
Instance details

Defined in TextShow.GHC.Event

Methods

showbPrec :: Int -> Unique -> Builder #

showb :: Unique -> Builder #

showbList :: [Unique] -> Builder #

showtPrec :: Int -> Unique -> Text #

showt :: Unique -> Text #

showtList :: [Unique] -> Text #

showtlPrec :: Int -> Unique -> Text #

showtl :: Unique -> Text #

showtlList :: [Unique] -> Text #

TextShow Void #

Since: 2

Instance details

Defined in TextShow.Data.Void

TextShow StaticPtrInfo #

Since: 2

Instance details

Defined in TextShow.GHC.StaticPtr

TextShow DataType #

Since: 2

Instance details

Defined in TextShow.Data.Data

TextShow Constr #

Since: 2

Instance details

Defined in TextShow.Data.Data

TextShow DataRep #

Since: 2

Instance details

Defined in TextShow.Data.Data

TextShow ConstrRep #

Since: 2

Instance details

Defined in TextShow.Data.Data

TextShow Fixity #

Since: 2

Instance details

Defined in TextShow.Data.Data

TextShow GiveGCStats #

Since: 2.1

Instance details

Defined in TextShow.GHC.RTS.Flags

TextShow GCFlags #

Since: 2

Instance details

Defined in TextShow.GHC.RTS.Flags

TextShow ConcFlags #

Since: 2

Instance details

Defined in TextShow.GHC.RTS.Flags

TextShow MiscFlags #

Since: 2

Instance details

Defined in TextShow.GHC.RTS.Flags

TextShow DebugFlags #

Since: 2

Instance details

Defined in TextShow.GHC.RTS.Flags

TextShow DoCostCentres #

Since: 2.1

Instance details

Defined in TextShow.GHC.RTS.Flags

TextShow CCFlags #

Since: 2

Instance details

Defined in TextShow.GHC.RTS.Flags

TextShow DoHeapProfile #

Since: 2.1

Instance details

Defined in TextShow.GHC.RTS.Flags

TextShow ProfFlags #

Since: 2

Instance details

Defined in TextShow.GHC.RTS.Flags

TextShow DoTrace #

Since: 2.1

Instance details

Defined in TextShow.GHC.RTS.Flags

TextShow TraceFlags #

Since: 2

Instance details

Defined in TextShow.GHC.RTS.Flags

TextShow TickyFlags #

Since: 2

Instance details

Defined in TextShow.GHC.RTS.Flags

TextShow ParFlags #

Only available with base-4.10.0.0 or later.

Since: 3.3

Instance details

Defined in TextShow.GHC.RTS.Flags

TextShow RTSFlags #

Since: 2

Instance details

Defined in TextShow.GHC.RTS.Flags

TextShow Version #

Since: 2

Instance details

Defined in TextShow.Data.Version

TextShow HandlePosn #

Since: 2

Instance details

Defined in TextShow.System.IO

TextShow FdKey #

Since: 2

Instance details

Defined in TextShow.GHC.Event

TextShow PatternMatchFail #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow RecSelError #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow RecConError #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow RecUpdError #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow NoMethodError #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow TypeError #

Only available with base-4.9.0.0 or later.

Since: 3

Instance details

Defined in TextShow.Control.Exception

TextShow NonTermination #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow NestedAtomically #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow ThreadId #

Since: 2

Instance details

Defined in TextShow.Control.Concurrent

TextShow BlockReason #

Since: 2

Instance details

Defined in TextShow.Control.Concurrent

TextShow ThreadStatus #

Since: 2

Instance details

Defined in TextShow.Control.Concurrent

TextShow Dynamic #

Since: 2

Instance details

Defined in TextShow.Data.Dynamic

TextShow Event #

Since: 2

Instance details

Defined in TextShow.GHC.Event

TextShow Lifetime #

Only available with base-4.8.1.0 or later.

Since: 2

Instance details

Defined in TextShow.GHC.Event

TextShow CDev #

Since: 2

Instance details

Defined in TextShow.System.Posix.Types

TextShow CIno #

Since: 2

Instance details

Defined in TextShow.System.Posix.Types

TextShow CMode #

Since: 2

Instance details

Defined in TextShow.System.Posix.Types

TextShow COff #

Since: 2

Instance details

Defined in TextShow.System.Posix.Types

TextShow CPid #

Since: 2

Instance details

Defined in TextShow.System.Posix.Types

TextShow CSsize #

Since: 2

Instance details

Defined in TextShow.System.Posix.Types

TextShow CGid #

Since: 2

Instance details

Defined in TextShow.System.Posix.Types

TextShow CNlink #

Since: 2

Instance details

Defined in TextShow.System.Posix.Types

TextShow CUid #

Since: 2

Instance details

Defined in TextShow.System.Posix.Types

TextShow CCc #

Since: 2

Instance details

Defined in TextShow.System.Posix.Types

TextShow CSpeed #

Since: 2

Instance details

Defined in TextShow.System.Posix.Types

TextShow CTcflag #

Since: 2

Instance details

Defined in TextShow.System.Posix.Types

TextShow CRLim #

Since: 2

Instance details

Defined in TextShow.System.Posix.Types

TextShow CBlkSize #

Only available with base-4.10.0.0 or later.

Since: 3.6

Instance details

Defined in TextShow.System.Posix.Types

TextShow CBlkCnt #

Only available with base-4.10.0.0 or later.

Since: 3.6

Instance details

Defined in TextShow.System.Posix.Types

TextShow CClockId #

Only available with base-4.10.0.0 or later.

Since: 3.6

Instance details

Defined in TextShow.System.Posix.Types

TextShow CFsBlkCnt #

Only available with base-4.10.0.0 or later.

Since: 3.6

Instance details

Defined in TextShow.System.Posix.Types

TextShow CFsFilCnt #

Only available with base-4.10.0.0 or later.

Since: 3.6

Instance details

Defined in TextShow.System.Posix.Types

TextShow CId #

Only available with base-4.10.0.0 or later.

Since: 3.6

Instance details

Defined in TextShow.System.Posix.Types

TextShow CKey #

Only available with base-4.10.0.0 or later.

Since: 3.6

Instance details

Defined in TextShow.System.Posix.Types

TextShow CTimer #

Only available with base-4.10.0.0 or later.

Since: 3.6

Instance details

Defined in TextShow.System.Posix.Types

TextShow Fd #

Since: 2

Instance details

Defined in TextShow.System.Posix.Types

Methods

showbPrec :: Int -> Fd -> Builder #

showb :: Fd -> Builder #

showbList :: [Fd] -> Builder #

showtPrec :: Int -> Fd -> Text #

showt :: Fd -> Text #

showtList :: [Fd] -> Text #

showtlPrec :: Int -> Fd -> Text #

showtl :: Fd -> Text #

showtlList :: [Fd] -> Text #

TextShow CodingFailureMode #

Since: 2

Instance details

Defined in TextShow.System.IO

TextShow BlockedIndefinitelyOnMVar #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow BlockedIndefinitelyOnSTM #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow Deadlock #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow AllocationLimitExceeded #

Only available with base-4.8.0.0 or later.

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow CompactionFailed #

Only available with base-4.10.0.0 or later.

Since: 3.6

Instance details

Defined in TextShow.Control.Exception

TextShow AssertionFailed #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow SomeAsyncException #

Only available with base-4.7.0.0 or later.

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow AsyncException #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow ArrayException #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow FixIOException #

Only available with base-4.11.0.0 or later.

Since: 3.7.3

Instance details

Defined in TextShow.Control.Exception

TextShow ExitCode #

Since: 2

Instance details

Defined in TextShow.System.Exit

TextShow BufferMode #

Since: 2

Instance details

Defined in TextShow.System.IO

TextShow Newline #

Since: 2

Instance details

Defined in TextShow.System.IO

TextShow NewlineMode #

Since: 2

Instance details

Defined in TextShow.System.IO

TextShow SeekMode #

Since: 2

Instance details

Defined in TextShow.System.IO

TextShow TextEncoding #

Since: 2

Instance details

Defined in TextShow.System.IO

TextShow CodingProgress #

Since: 2

Instance details

Defined in TextShow.System.IO

TextShow MaskingState #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow IOException #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow ErrorCall #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow ArithException #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow All #

Since: 2

Instance details

Defined in TextShow.Data.Monoid

TextShow Any #

Since: 2

Instance details

Defined in TextShow.Data.Monoid

TextShow Fixity #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

TextShow Associativity #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

TextShow SourceUnpackedness #

Only available with base-4.9.0.0 or later.

Since: 3

Instance details

Defined in TextShow.GHC.Generics

TextShow SourceStrictness #

Only available with base-4.9.0.0 or later.

Since: 3

Instance details

Defined in TextShow.GHC.Generics

TextShow DecidedStrictness #

Only available with base-4.9.0.0 or later.

Since: 3

Instance details

Defined in TextShow.GHC.Generics

TextShow SomeSymbol #

Only available with base-4.7.0.0 or later.

Since: 2

Instance details

Defined in TextShow.GHC.TypeLits

TextShow SomeNat #

Only available with base-4.7.0.0 or later.

Since: 2

Instance details

Defined in TextShow.GHC.TypeLits

TextShow CChar #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CSChar #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CUChar #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CShort #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CUShort #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CInt #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CUInt #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CLong #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CULong #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CLLong #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CULLong #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CBool #

Only available with base-4.10.0.0 or later.

Since: 3.6

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CFloat #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CDouble #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CPtrdiff #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CSize #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CWchar #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CSigAtomic #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CClock #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CTime #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CUSeconds #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CSUSeconds #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CIntPtr #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CUIntPtr #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CIntMax #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow CUIntMax #

Since: 2

Instance details

Defined in TextShow.Foreign.C.Types

TextShow WordPtr #

Since: 2

Instance details

Defined in TextShow.Foreign.Ptr

TextShow IntPtr #

Since: 2

Instance details

Defined in TextShow.Foreign.Ptr

TextShow IOMode #

Since: 2

Instance details

Defined in TextShow.System.IO

TextShow Fingerprint #

Since: 2

Instance details

Defined in TextShow.GHC.Fingerprint

TextShow Lexeme #

Since: 2

Instance details

Defined in TextShow.Text.Read

TextShow Number #

Only available with base-4.6.0.0 or later.

Since: 2

Instance details

Defined in TextShow.Text.Read

TextShow GeneralCategory #

Since: 2

Instance details

Defined in TextShow.Data.Char

TextShow SrcLoc #

Since: 3.0.1

Instance details

Defined in TextShow.GHC.Stack

TextShow SomeException #

Since: 2

Instance details

Defined in TextShow.Control.Exception

TextShow ShortByteString #

Since: 2

Instance details

Defined in TextShow.Data.ByteString

TextShow ByteString #

Since: 2

Instance details

Defined in TextShow.Data.ByteString

TextShow ByteString #

Since: 2

Instance details

Defined in TextShow.Data.ByteString

TextShow FPFormat #

Since: 2

Instance details

Defined in TextShow.Data.Floating

TextShow Builder #

Since: 2

Instance details

Defined in TextShow.Data.Text

TextShow Text #

Since: 2

Instance details

Defined in TextShow.Data.Text

TextShow I16 #

Since: 2

Instance details

Defined in TextShow.Data.Text

TextShow Decoding #

Only available with text-1.0.0.0 or later.

Since: 2

Instance details

Defined in TextShow.Data.Text

TextShow Size #

Only available with text-1.1.0.0 or later.

Since: 2

Instance details

Defined in TextShow.Data.Text

TextShow Text #

Since: 2

Instance details

Defined in TextShow.Data.Text

TextShow UnicodeException #

Since: 2

Instance details

Defined in TextShow.Data.Text

TextShow GenTextMethods # 
Instance details

Defined in TextShow.TH

TextShow Options # 
Instance details

Defined in TextShow.TH

TextShow ConType # 
Instance details

Defined in TextShow.Generic

TextShow a => TextShow [a] #

Since: 2

Instance details

Defined in TextShow.Data.List

Methods

showbPrec :: Int -> [a] -> Builder #

showb :: [a] -> Builder #

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

showtPrec :: Int -> [a] -> Text #

showt :: [a] -> Text #

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

showtlPrec :: Int -> [a] -> Text #

showtl :: [a] -> Text #

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

TextShow a => TextShow (Maybe a) #

Since: 2

Instance details

Defined in TextShow.Data.Maybe

Methods

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

showb :: Maybe a -> Builder #

showbList :: [Maybe a] -> Builder #

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

showt :: Maybe a -> Text #

showtList :: [Maybe a] -> Text #

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

showtl :: Maybe a -> Text #

showtlList :: [Maybe a] -> Text #

TextShow a => TextShow (Ratio a) #

Since: 2

Instance details

Defined in TextShow.Data.Ratio

Methods

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

showb :: Ratio a -> Builder #

showbList :: [Ratio a] -> Builder #

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

showt :: Ratio a -> Text #

showtList :: [Ratio a] -> Text #

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

showtl :: Ratio a -> Text #

showtlList :: [Ratio a] -> Text #

TextShow (Ptr a) #

Since: 2

Instance details

Defined in TextShow.Foreign.Ptr

Methods

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

showb :: Ptr a -> Builder #

showbList :: [Ptr a] -> Builder #

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

showt :: Ptr a -> Text #

showtList :: [Ptr a] -> Text #

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

showtl :: Ptr a -> Text #

showtlList :: [Ptr a] -> Text #

TextShow (FunPtr a) #

Since: 2

Instance details

Defined in TextShow.Foreign.Ptr

TextShow p => TextShow (Par1 p) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

showbPrec :: Int -> Par1 p -> Builder #

showb :: Par1 p -> Builder #

showbList :: [Par1 p] -> Builder #

showtPrec :: Int -> Par1 p -> Text #

showt :: Par1 p -> Text #

showtList :: [Par1 p] -> Text #

showtlPrec :: Int -> Par1 p -> Text #

showtl :: Par1 p -> Text #

showtlList :: [Par1 p] -> Text #

TextShow (ForeignPtr a) #

Since: 2

Instance details

Defined in TextShow.Foreign.Ptr

TextShow a => TextShow (Complex a) #

Since: 2

Instance details

Defined in TextShow.Data.Complex

HasResolution a => TextShow (Fixed a) #

Since: 2

Instance details

Defined in TextShow.Data.Fixed

Methods

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

showb :: Fixed a -> Builder #

showbList :: [Fixed a] -> Builder #

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

showt :: Fixed a -> Text #

showtList :: [Fixed a] -> Text #

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

showtl :: Fixed a -> Text #

showtlList :: [Fixed a] -> Text #

TextShow a => TextShow (Min a) #

Since: 3

Instance details

Defined in TextShow.Data.Semigroup

Methods

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

showb :: Min a -> Builder #

showbList :: [Min a] -> Builder #

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

showt :: Min a -> Text #

showtList :: [Min a] -> Text #

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

showtl :: Min a -> Text #

showtlList :: [Min a] -> Text #

TextShow a => TextShow (Max a) #

Since: 3

Instance details

Defined in TextShow.Data.Semigroup

Methods

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

showb :: Max a -> Builder #

showbList :: [Max a] -> Builder #

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

showt :: Max a -> Text #

showtList :: [Max a] -> Text #

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

showtl :: Max a -> Text #

showtlList :: [Max a] -> Text #

TextShow a => TextShow (First a) #

Since: 3

Instance details

Defined in TextShow.Data.Semigroup

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: 3

Instance details

Defined in TextShow.Data.Semigroup

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 m => TextShow (WrappedMonoid m) #

Since: 3

Instance details

Defined in TextShow.Data.Semigroup

TextShow a => TextShow (Option a) #

Since: 3

Instance details

Defined in TextShow.Data.Semigroup

TextShow a => TextShow (ZipList a) #

Since: 2

Instance details

Defined in TextShow.Control.Applicative

TextShow a => TextShow (Identity a) #

Since: 3

Instance details

Defined in TextShow.Data.Functor.Identity

TextShow a => TextShow (First a) #

Since: 2

Instance details

Defined in TextShow.Data.Monoid

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

Defined in TextShow.Data.Monoid

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

Defined in TextShow.Data.Monoid

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

Defined in TextShow.Data.Monoid

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

Defined in TextShow.Data.Monoid

TextShow a => TextShow (Down a) #

Since: 2

Instance details

Defined in TextShow.Data.Ord

Methods

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

showb :: Down a -> Builder #

showbList :: [Down a] -> Builder #

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

showt :: Down a -> Text #

showtList :: [Down a] -> Text #

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

showtl :: Down a -> Text #

showtlList :: [Down a] -> Text #

TextShow a => TextShow (NonEmpty a) #

Since: 3

Instance details

Defined in TextShow.Data.List.NonEmpty

TextShow a => TextShow (FromTextShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Show a => TextShow (FromStringShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

(Generic a, GTextShowB Zero (Rep a)) => TextShow (FromGeneric a) #

Since: 3.7.4

Instance details

Defined in TextShow.Generic

TextShow (a -> b) #

Since: 2

Instance details

Defined in TextShow.Functions

Methods

showbPrec :: Int -> (a -> b) -> Builder #

showb :: (a -> b) -> Builder #

showbList :: [a -> b] -> Builder #

showtPrec :: Int -> (a -> b) -> Text #

showt :: (a -> b) -> Text #

showtList :: [a -> b] -> Text #

showtlPrec :: Int -> (a -> b) -> Text #

showtl :: (a -> b) -> Text #

showtlList :: [a -> b] -> Text #

(TextShow a, TextShow b) => TextShow (Either a b) #

Since: 2

Instance details

Defined in TextShow.Data.Either

Methods

showbPrec :: Int -> Either a b -> Builder #

showb :: Either a b -> Builder #

showbList :: [Either a b] -> Builder #

showtPrec :: Int -> Either a b -> Text #

showt :: Either a b -> Text #

showtList :: [Either a b] -> Text #

showtlPrec :: Int -> Either a b -> Text #

showtl :: Either a b -> Text #

showtlList :: [Either a b] -> Text #

TextShow (U1 p) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

showbPrec :: Int -> U1 p -> Builder #

showb :: U1 p -> Builder #

showbList :: [U1 p] -> Builder #

showtPrec :: Int -> U1 p -> Text #

showt :: U1 p -> Text #

showtList :: [U1 p] -> Text #

showtlPrec :: Int -> U1 p -> Text #

showtl :: U1 p -> Text #

showtlList :: [U1 p] -> Text #

TextShow (UChar p) #

Since: 2.1.2

Instance details

Defined in TextShow.GHC.Generics

Methods

showbPrec :: Int -> UChar p -> Builder #

showb :: UChar p -> Builder #

showbList :: [UChar p] -> Builder #

showtPrec :: Int -> UChar p -> Text #

showt :: UChar p -> Text #

showtList :: [UChar p] -> Text #

showtlPrec :: Int -> UChar p -> Text #

showtl :: UChar p -> Text #

showtlList :: [UChar p] -> Text #

TextShow (UDouble p) #

Since: 2.1.2

Instance details

Defined in TextShow.GHC.Generics

TextShow (UFloat p) #

Since: 2.1.2

Instance details

Defined in TextShow.GHC.Generics

TextShow (UInt p) #

Since: 2.1.2

Instance details

Defined in TextShow.GHC.Generics

Methods

showbPrec :: Int -> UInt p -> Builder #

showb :: UInt p -> Builder #

showbList :: [UInt p] -> Builder #

showtPrec :: Int -> UInt p -> Text #

showt :: UInt p -> Text #

showtList :: [UInt p] -> Text #

showtlPrec :: Int -> UInt p -> Text #

showtl :: UInt p -> Text #

showtlList :: [UInt p] -> Text #

TextShow (UWord p) #

Since: 2.1.2

Instance details

Defined in TextShow.GHC.Generics

Methods

showbPrec :: Int -> UWord p -> Builder #

showb :: UWord p -> Builder #

showbList :: [UWord p] -> Builder #

showtPrec :: Int -> UWord p -> Text #

showt :: UWord p -> Text #

showtList :: [UWord p] -> Text #

showtlPrec :: Int -> UWord p -> Text #

showtl :: UWord p -> Text #

showtlList :: [UWord p] -> Text #

TextShow (TypeRep a) #

Only available with base-4.10.0.0 or later.

Since: 3.6

Instance details

Defined in TextShow.Data.Typeable

(TextShow a, TextShow b) => TextShow (a, b) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> (a, b) -> Builder #

showb :: (a, b) -> Builder #

showbList :: [(a, b)] -> Builder #

showtPrec :: Int -> (a, b) -> Text #

showt :: (a, b) -> Text #

showtList :: [(a, b)] -> Text #

showtlPrec :: Int -> (a, b) -> Text #

showtl :: (a, b) -> Text #

showtlList :: [(a, b)] -> Text #

TextShow (ST s a) #

Since: 2

Instance details

Defined in TextShow.Control.Monad.ST

Methods

showbPrec :: Int -> ST s a -> Builder #

showb :: ST s a -> Builder #

showbList :: [ST s a] -> Builder #

showtPrec :: Int -> ST s a -> Text #

showt :: ST s a -> Text #

showtList :: [ST s a] -> Text #

showtlPrec :: Int -> ST s a -> Text #

showtl :: ST s a -> Text #

showtlList :: [ST s a] -> Text #

(IArray UArray e, Ix i, TextShow i, TextShow e) => TextShow (UArray i e) #

Since: 2

Instance details

Defined in TextShow.Data.Array

Methods

showbPrec :: Int -> UArray i e -> Builder #

showb :: UArray i e -> Builder #

showbList :: [UArray i e] -> Builder #

showtPrec :: Int -> UArray i e -> Text #

showt :: UArray i e -> Text #

showtList :: [UArray i e] -> Text #

showtlPrec :: Int -> UArray i e -> Text #

showtl :: UArray i e -> Text #

showtlList :: [UArray i e] -> Text #

(TextShow i, TextShow e, Ix i) => TextShow (Array i e) #

Since: 2

Instance details

Defined in TextShow.Data.Array

Methods

showbPrec :: Int -> Array i e -> Builder #

showb :: Array i e -> Builder #

showbList :: [Array i e] -> Builder #

showtPrec :: Int -> Array i e -> Text #

showt :: Array i e -> Text #

showtList :: [Array i e] -> Text #

showtlPrec :: Int -> Array i e -> Text #

showtl :: Array i e -> Text #

showtlList :: [Array i e] -> Text #

(TextShow a, TextShow b) => TextShow (Arg a b) #

Since: 3

Instance details

Defined in TextShow.Data.Semigroup

Methods

showbPrec :: Int -> Arg a b -> Builder #

showb :: Arg a b -> Builder #

showbList :: [Arg a b] -> Builder #

showtPrec :: Int -> Arg a b -> Text #

showt :: Arg a b -> Text #

showtList :: [Arg a b] -> Text #

showtlPrec :: Int -> Arg a b -> Text #

showtl :: Arg a b -> Text #

showtlList :: [Arg a b] -> Text #

TextShow (Proxy s) #

Since: 2

Instance details

Defined in TextShow.Data.Proxy

Methods

showbPrec :: Int -> Proxy s -> Builder #

showb :: Proxy s -> Builder #

showbList :: [Proxy s] -> Builder #

showtPrec :: Int -> Proxy s -> Text #

showt :: Proxy s -> Text #

showtList :: [Proxy s] -> Text #

showtlPrec :: Int -> Proxy s -> Text #

showtl :: Proxy s -> Text #

showtlList :: [Proxy s] -> Text #

TextShow (f p) => TextShow (Rec1 f p) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

showbPrec :: Int -> Rec1 f p -> Builder #

showb :: Rec1 f p -> Builder #

showbList :: [Rec1 f p] -> Builder #

showtPrec :: Int -> Rec1 f p -> Text #

showt :: Rec1 f p -> Text #

showtList :: [Rec1 f p] -> Text #

showtlPrec :: Int -> Rec1 f p -> Text #

showtl :: Rec1 f p -> Text #

showtlList :: [Rec1 f p] -> Text #

(TextShow a, TextShow b, TextShow c) => TextShow (a, b, c) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> (a, b, c) -> Builder #

showb :: (a, b, c) -> Builder #

showbList :: [(a, b, c)] -> Builder #

showtPrec :: Int -> (a, b, c) -> Text #

showt :: (a, b, c) -> Text #

showtList :: [(a, b, c)] -> Text #

showtlPrec :: Int -> (a, b, c) -> Text #

showtl :: (a, b, c) -> Text #

showtlList :: [(a, b, c)] -> Text #

TextShow a => TextShow (Const a b) #

Since: 2

Instance details

Defined in TextShow.Control.Applicative

Methods

showbPrec :: Int -> Const a b -> Builder #

showb :: Const a b -> Builder #

showbList :: [Const a b] -> Builder #

showtPrec :: Int -> Const a b -> Text #

showt :: Const a b -> Text #

showtList :: [Const a b] -> Text #

showtlPrec :: Int -> Const a b -> Text #

showtl :: Const a b -> Text #

showtlList :: [Const a b] -> Text #

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

Only available with base-4.12.0.0 or later.

Since: 3.7.4

Instance details

Defined in TextShow.Data.Monoid

Methods

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

showb :: Ap f a -> Builder #

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

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

showt :: Ap f a -> Text #

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

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

showtl :: Ap f a -> Text #

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

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

Only available with base-4.8.0.0 or later.

Since: 2

Instance details

Defined in TextShow.Data.Monoid

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 #

TextShow (Coercion a b) #

Since: 2

Instance details

Defined in TextShow.Data.Type.Coercion

Methods

showbPrec :: Int -> Coercion a b -> Builder #

showb :: Coercion a b -> Builder #

showbList :: [Coercion a b] -> Builder #

showtPrec :: Int -> Coercion a b -> Text #

showt :: Coercion a b -> Text #

showtList :: [Coercion a b] -> Text #

showtlPrec :: Int -> Coercion a b -> Text #

showtl :: Coercion a b -> Text #

showtlList :: [Coercion a b] -> Text #

TextShow (a :~: b) #

Since: 2

Instance details

Defined in TextShow.Data.Type.Equality

Methods

showbPrec :: Int -> (a :~: b) -> Builder #

showb :: (a :~: b) -> Builder #

showbList :: [a :~: b] -> Builder #

showtPrec :: Int -> (a :~: b) -> Text #

showt :: (a :~: b) -> Text #

showtList :: [a :~: b] -> Text #

showtlPrec :: Int -> (a :~: b) -> Text #

showtl :: (a :~: b) -> Text #

showtlList :: [a :~: b] -> Text #

(TextShow1 f, TextShow a) => TextShow (FromTextShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

(Show1 f, Show a) => TextShow (FromStringShow1 f a) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

TextShow c => TextShow (K1 i c p) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

showbPrec :: Int -> K1 i c p -> Builder #

showb :: K1 i c p -> Builder #

showbList :: [K1 i c p] -> Builder #

showtPrec :: Int -> K1 i c p -> Text #

showt :: K1 i c p -> Text #

showtList :: [K1 i c p] -> Text #

showtlPrec :: Int -> K1 i c p -> Text #

showtl :: K1 i c p -> Text #

showtlList :: [K1 i c p] -> Text #

(TextShow (f p), TextShow (g p)) => TextShow ((f :+: g) p) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

showbPrec :: Int -> (f :+: g) p -> Builder #

showb :: (f :+: g) p -> Builder #

showbList :: [(f :+: g) p] -> Builder #

showtPrec :: Int -> (f :+: g) p -> Text #

showt :: (f :+: g) p -> Text #

showtList :: [(f :+: g) p] -> Text #

showtlPrec :: Int -> (f :+: g) p -> Text #

showtl :: (f :+: g) p -> Text #

showtlList :: [(f :+: g) p] -> Text #

(TextShow (f p), TextShow (g p)) => TextShow ((f :*: g) p) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

showbPrec :: Int -> (f :*: g) p -> Builder #

showb :: (f :*: g) p -> Builder #

showbList :: [(f :*: g) p] -> Builder #

showtPrec :: Int -> (f :*: g) p -> Text #

showt :: (f :*: g) p -> Text #

showtList :: [(f :*: g) p] -> Text #

showtlPrec :: Int -> (f :*: g) p -> Text #

showtl :: (f :*: g) p -> Text #

showtlList :: [(f :*: g) p] -> Text #

(TextShow a, TextShow b, TextShow c, TextShow d) => TextShow (a, b, c, d) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> (a, b, c, d) -> Builder #

showb :: (a, b, c, d) -> Builder #

showbList :: [(a, b, c, d)] -> Builder #

showtPrec :: Int -> (a, b, c, d) -> Text #

showt :: (a, b, c, d) -> Text #

showtList :: [(a, b, c, d)] -> Text #

showtlPrec :: Int -> (a, b, c, d) -> Text #

showtl :: (a, b, c, d) -> Text #

showtlList :: [(a, b, c, d)] -> Text #

(TextShow1 f, TextShow1 g, TextShow a) => TextShow (Product f g a) #

Since: 3

Instance details

Defined in TextShow.Data.Functor.Product

Methods

showbPrec :: Int -> Product f g a -> Builder #

showb :: Product f g a -> Builder #

showbList :: [Product f g a] -> Builder #

showtPrec :: Int -> Product f g a -> Text #

showt :: Product f g a -> Text #

showtList :: [Product f g a] -> Text #

showtlPrec :: Int -> Product f g a -> Text #

showtl :: Product f g a -> Text #

showtlList :: [Product f g a] -> Text #

(TextShow1 f, TextShow1 g, TextShow a) => TextShow (Sum f g a) #

Since: 3

Instance details

Defined in TextShow.Data.Functor.Sum

Methods

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

showb :: Sum f g a -> Builder #

showbList :: [Sum f g a] -> Builder #

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

showt :: Sum f g a -> Text #

showtList :: [Sum f g a] -> Text #

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

showtl :: Sum f g a -> Text #

showtlList :: [Sum f g a] -> Text #

TextShow (a :~~: b) #

Since: 3.6

Instance details

Defined in TextShow.Data.Type.Equality

Methods

showbPrec :: Int -> (a :~~: b) -> Builder #

showb :: (a :~~: b) -> Builder #

showbList :: [a :~~: b] -> Builder #

showtPrec :: Int -> (a :~~: b) -> Text #

showt :: (a :~~: b) -> Text #

showtList :: [a :~~: b] -> Text #

showtlPrec :: Int -> (a :~~: b) -> Text #

showtl :: (a :~~: b) -> Text #

showtlList :: [a :~~: b] -> Text #

TextShow (f p) => TextShow (M1 i c f p) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

showbPrec :: Int -> M1 i c f p -> Builder #

showb :: M1 i c f p -> Builder #

showbList :: [M1 i c f p] -> Builder #

showtPrec :: Int -> M1 i c f p -> Text #

showt :: M1 i c f p -> Text #

showtList :: [M1 i c f p] -> Text #

showtlPrec :: Int -> M1 i c f p -> Text #

showtl :: M1 i c f p -> Text #

showtlList :: [M1 i c f p] -> Text #

TextShow (f (g p)) => TextShow ((f :.: g) p) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

showbPrec :: Int -> (f :.: g) p -> Builder #

showb :: (f :.: g) p -> Builder #

showbList :: [(f :.: g) p] -> Builder #

showtPrec :: Int -> (f :.: g) p -> Text #

showt :: (f :.: g) p -> Text #

showtList :: [(f :.: g) p] -> Text #

showtlPrec :: Int -> (f :.: g) p -> Text #

showtl :: (f :.: g) p -> Text #

showtlList :: [(f :.: g) p] -> Text #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e) => TextShow (a, b, c, d, e) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> (a, b, c, d, e) -> Builder #

showb :: (a, b, c, d, e) -> Builder #

showbList :: [(a, b, c, d, e)] -> Builder #

showtPrec :: Int -> (a, b, c, d, e) -> Text #

showt :: (a, b, c, d, e) -> Text #

showtList :: [(a, b, c, d, e)] -> Text #

showtlPrec :: Int -> (a, b, c, d, e) -> Text #

showtl :: (a, b, c, d, e) -> Text #

showtlList :: [(a, b, c, d, e)] -> Text #

(TextShow1 f, TextShow1 g, TextShow a) => TextShow (Compose f g a) #

Since: 3

Instance details

Defined in TextShow.Data.Functor.Compose

Methods

showbPrec :: Int -> Compose f g a -> Builder #

showb :: Compose f g a -> Builder #

showbList :: [Compose f g a] -> Builder #

showtPrec :: Int -> Compose f g a -> Text #

showt :: Compose f g a -> Text #

showtList :: [Compose f g a] -> Text #

showtlPrec :: Int -> Compose f g a -> Text #

showtl :: Compose f g a -> Text #

showtlList :: [Compose f g a] -> Text #

(TextShow2 f, TextShow a, TextShow b) => TextShow (FromTextShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

(Show2 f, Show a, Show b) => TextShow (FromStringShow2 f a b) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f) => TextShow (a, b, c, d, e, f) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> (a, b, c, d, e, f) -> Builder #

showb :: (a, b, c, d, e, f) -> Builder #

showbList :: [(a, b, c, d, e, f)] -> Builder #

showtPrec :: Int -> (a, b, c, d, e, f) -> Text #

showt :: (a, b, c, d, e, f) -> Text #

showtList :: [(a, b, c, d, e, f)] -> Text #

showtlPrec :: Int -> (a, b, c, d, e, f) -> Text #

showtl :: (a, b, c, d, e, f) -> Text #

showtlList :: [(a, b, c, d, e, f)] -> Text #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g) => TextShow (a, b, c, d, e, f, g) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> (a, b, c, d, e, f, g) -> Builder #

showb :: (a, b, c, d, e, f, g) -> Builder #

showbList :: [(a, b, c, d, e, f, g)] -> Builder #

showtPrec :: Int -> (a, b, c, d, e, f, g) -> Text #

showt :: (a, b, c, d, e, f, g) -> Text #

showtList :: [(a, b, c, d, e, f, g)] -> Text #

showtlPrec :: Int -> (a, b, c, d, e, f, g) -> Text #

showtl :: (a, b, c, d, e, f, g) -> Text #

showtlList :: [(a, b, c, d, e, f, g)] -> Text #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h) => TextShow (a, b, c, d, e, f, g, h) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> (a, b, c, d, e, f, g, h) -> Builder #

showb :: (a, b, c, d, e, f, g, h) -> Builder #

showbList :: [(a, b, c, d, e, f, g, h)] -> Builder #

showtPrec :: Int -> (a, b, c, d, e, f, g, h) -> Text #

showt :: (a, b, c, d, e, f, g, h) -> Text #

showtList :: [(a, b, c, d, e, f, g, h)] -> Text #

showtlPrec :: Int -> (a, b, c, d, e, f, g, h) -> Text #

showtl :: (a, b, c, d, e, f, g, h) -> Text #

showtlList :: [(a, b, c, d, e, f, g, h)] -> Text #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i) => TextShow (a, b, c, d, e, f, g, h, i) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> (a, b, c, d, e, f, g, h, i) -> Builder #

showb :: (a, b, c, d, e, f, g, h, i) -> Builder #

showbList :: [(a, b, c, d, e, f, g, h, i)] -> Builder #

showtPrec :: Int -> (a, b, c, d, e, f, g, h, i) -> Text #

showt :: (a, b, c, d, e, f, g, h, i) -> Text #

showtList :: [(a, b, c, d, e, f, g, h, i)] -> Text #

showtlPrec :: Int -> (a, b, c, d, e, f, g, h, i) -> Text #

showtl :: (a, b, c, d, e, f, g, h, i) -> Text #

showtlList :: [(a, b, c, d, e, f, g, h, i)] -> Text #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j) => TextShow (a, b, c, d, e, f, g, h, i, j) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> (a, b, c, d, e, f, g, h, i, j) -> Builder #

showb :: (a, b, c, d, e, f, g, h, i, j) -> Builder #

showbList :: [(a, b, c, d, e, f, g, h, i, j)] -> Builder #

showtPrec :: Int -> (a, b, c, d, e, f, g, h, i, j) -> Text #

showt :: (a, b, c, d, e, f, g, h, i, j) -> Text #

showtList :: [(a, b, c, d, e, f, g, h, i, j)] -> Text #

showtlPrec :: Int -> (a, b, c, d, e, f, g, h, i, j) -> Text #

showtl :: (a, b, c, d, e, f, g, h, i, j) -> Text #

showtlList :: [(a, b, c, d, e, f, g, h, i, j)] -> Text #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k) => TextShow (a, b, c, d, e, f, g, h, i, j, k) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k) -> Builder #

showb :: (a, b, c, d, e, f, g, h, i, j, k) -> Builder #

showbList :: [(a, b, c, d, e, f, g, h, i, j, k)] -> Builder #

showtPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k) -> Text #

showt :: (a, b, c, d, e, f, g, h, i, j, k) -> Text #

showtList :: [(a, b, c, d, e, f, g, h, i, j, k)] -> Text #

showtlPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k) -> Text #

showtl :: (a, b, c, d, e, f, g, h, i, j, k) -> Text #

showtlList :: [(a, b, c, d, e, f, g, h, i, j, k)] -> Text #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k, TextShow l) => TextShow (a, b, c, d, e, f, g, h, i, j, k, l) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l) -> Builder #

showb :: (a, b, c, d, e, f, g, h, i, j, k, l) -> Builder #

showbList :: [(a, b, c, d, e, f, g, h, i, j, k, l)] -> Builder #

showtPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l) -> Text #

showt :: (a, b, c, d, e, f, g, h, i, j, k, l) -> Text #

showtList :: [(a, b, c, d, e, f, g, h, i, j, k, l)] -> Text #

showtlPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l) -> Text #

showtl :: (a, b, c, d, e, f, g, h, i, j, k, l) -> Text #

showtlList :: [(a, b, c, d, e, f, g, h, i, j, k, l)] -> Text #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k, TextShow l, TextShow m) => TextShow (a, b, c, d, e, f, g, h, i, j, k, l, m) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> Builder #

showb :: (a, b, c, d, e, f, g, h, i, j, k, l, m) -> Builder #

showbList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m)] -> Builder #

showtPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> Text #

showt :: (a, b, c, d, e, f, g, h, i, j, k, l, m) -> Text #

showtList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m)] -> Text #

showtlPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> Text #

showtl :: (a, b, c, d, e, f, g, h, i, j, k, l, m) -> Text #

showtlList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m)] -> Text #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k, TextShow l, TextShow m, TextShow n) => TextShow (a, b, c, d, e, f, g, h, i, j, k, l, m, n) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> Builder #

showb :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> Builder #

showbList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m, n)] -> Builder #

showtPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> Text #

showt :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> Text #

showtList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m, n)] -> Text #

showtlPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> Text #

showtl :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> Text #

showtlList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m, n)] -> Text #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k, TextShow l, TextShow m, TextShow n, TextShow o) => TextShow (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

showbPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> Builder #

showb :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> Builder #

showbList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)] -> Builder #

showtPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> Text #

showt :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> Text #

showtList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)] -> Text #

showtlPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> Text #

showtl :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> Text #

showtlList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)] -> Text #

showbParen :: Bool -> Builder -> Builder #

Surrounds Builder output with parentheses if the Bool parameter is True.

Since: 2

showtParen :: Bool -> Text -> Text #

Surrounds strict Text output with parentheses if the Bool parameter is True.

Since: 3.4

showtlParen :: Bool -> Text -> Text #

Surrounds lazy Text output with parentheses if the Bool parameter is True.

Since: 3.4

showbCommaSpace :: Builder #

Construct a Builder containing a comma followed by a space.

Since: 3.6

showtCommaSpace :: Text #

Construct a strict Text containing a comma followed by a space.

Since: 3.6

showtlCommaSpace :: Text #

Construct a lazy Text containing a comma followed by a space.

Since: 3.6

showbSpace :: Builder #

Construct a Builder containing a single space character.

Since: 2

showtSpace :: Text #

Construct a strict Text containing a single space character.

Since: 3.4

showtlSpace :: Text #

Construct a lazy Text containing a single space character.

Since: 3.4

TextShow1

class TextShow1 f where #

Lifting of the TextShow class to unary type constructors.

Since: 2

Minimal complete definition

liftShowbPrec

Methods

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

showbPrec function for an application of the type constructor based on showbPrec and showbList functions for the argument type.

Since: 3

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

showbList function for an application of the type constructor based on showbPrec and showbList functions for the argument type. The default implementation using standard list syntax is correct for most types.

Since: 3

Instances
TextShow1 [] #

Since: 2

Instance details

Defined in TextShow.Data.List

Methods

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

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

TextShow1 Maybe #

Since: 2

Instance details

Defined in TextShow.Data.Maybe

Methods

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

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

TextShow1 Ratio #

Since: 2

Instance details

Defined in TextShow.Data.Ratio

Methods

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

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

TextShow1 Ptr #

Since: 2

Instance details

Defined in TextShow.Foreign.Ptr

Methods

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

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

TextShow1 FunPtr #

Since: 2

Instance details

Defined in TextShow.Foreign.Ptr

Methods

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

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

TextShow1 Par1 #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

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

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

TextShow1 ForeignPtr #

Since: 2

Instance details

Defined in TextShow.Foreign.Ptr

Methods

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

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

TextShow1 Complex #

Since: 2

Instance details

Defined in TextShow.Data.Complex

Methods

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

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

TextShow1 Min #

Since: 3

Instance details

Defined in TextShow.Data.Semigroup

Methods

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

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

TextShow1 Max #

Since: 3

Instance details

Defined in TextShow.Data.Semigroup

Methods

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

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

TextShow1 First #

Since: 3

Instance details

Defined in TextShow.Data.Semigroup

Methods

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

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

TextShow1 Last #

Since: 3

Instance details

Defined in TextShow.Data.Semigroup

Methods

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

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

TextShow1 WrappedMonoid #

Since: 3

Instance details

Defined in TextShow.Data.Semigroup

Methods

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

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

TextShow1 Option #

Since: 3

Instance details

Defined in TextShow.Data.Semigroup

Methods

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

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

TextShow1 ZipList #

Since: 2

Instance details

Defined in TextShow.Control.Applicative

Methods

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

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

TextShow1 Identity #

Since: 3

Instance details

Defined in TextShow.Data.Functor.Identity

Methods

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

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

TextShow1 First #

Since: 2

Instance details

Defined in TextShow.Data.Monoid

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

Defined in TextShow.Data.Monoid

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

Defined in TextShow.Data.Monoid

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

Defined in TextShow.Data.Monoid

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

Defined in TextShow.Data.Monoid

Methods

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

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

TextShow1 Down #

Since: 2

Instance details

Defined in TextShow.Data.Ord

Methods

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

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

TextShow1 NonEmpty #

Since: 3

Instance details

Defined in TextShow.Data.List.NonEmpty

Methods

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

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

TextShow1 FromTextShow # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

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

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

TextShow1 FromStringShow # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

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

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

TextShow a => TextShow1 (Either a) #

Since: 2

Instance details

Defined in TextShow.Data.Either

Methods

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

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

TextShow1 (U1 :: Type -> Type) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

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

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

TextShow1 (TypeRep :: Type -> Type) #

Only available with base-4.10.0.0 or later.

Since: 3.6

Instance details

Defined in TextShow.Data.Typeable

Methods

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

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

TextShow a => TextShow1 ((,) a) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

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

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

TextShow1 (ST s) #

Since: 2

Instance details

Defined in TextShow.Control.Monad.ST

Methods

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

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

TextShow a => TextShow1 (Arg a) #

Since: 3

Instance details

Defined in TextShow.Data.Semigroup

Methods

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

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

TextShow1 (Proxy :: Type -> Type) #

Since: 2

Instance details

Defined in TextShow.Data.Proxy

Methods

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

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

TextShow1 f => TextShow1 (Rec1 f) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

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

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

TextShow1 (URec Char :: Type -> Type) #

Since: 2.1.2

Instance details

Defined in TextShow.GHC.Generics

Methods

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

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

TextShow1 (URec Double :: Type -> Type) #

Since: 2.1.2

Instance details

Defined in TextShow.GHC.Generics

Methods

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

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

TextShow1 (URec Float :: Type -> Type) #

Since: 2.1.2

Instance details

Defined in TextShow.GHC.Generics

Methods

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

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

TextShow1 (URec Int :: Type -> Type) #

Since: 2.1.2

Instance details

Defined in TextShow.GHC.Generics

Methods

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

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

TextShow1 (URec Word :: Type -> Type) #

Since: 2.1.2

Instance details

Defined in TextShow.GHC.Generics

Methods

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

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

(TextShow a, TextShow b) => TextShow1 ((,,) a b) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> Int -> (a, b, a0) -> Builder #

liftShowbList :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> [(a, b, a0)] -> Builder #

TextShow a => TextShow1 (Const a :: Type -> Type) #

Since: 2

Instance details

Defined in TextShow.Control.Applicative

Methods

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

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

TextShow1 f => TextShow1 (Ap f) #

Only available with base-4.12.0.0 or later.

Since: 3.7.4

Instance details

Defined in TextShow.Data.Monoid

Methods

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

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

TextShow1 f => TextShow1 (Alt f) #

Only available with base-4.8.0.0 or later.

Since: 2

Instance details

Defined in TextShow.Data.Monoid

Methods

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

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

TextShow1 (Coercion a) #

Since: 2

Instance details

Defined in TextShow.Data.Type.Coercion

Methods

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

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

TextShow1 ((:~:) a) #

Since: 2

Instance details

Defined in TextShow.Data.Type.Equality

Methods

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

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

TextShow1 f => TextShow1 (FromTextShow1 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

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

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

Show1 f => TextShow1 (FromStringShow1 f) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

Methods

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

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

(Generic1 f, GTextShowB One (Rep1 f)) => TextShow1 (FromGeneric1 f) #

Since: 3.7.4

Instance details

Defined in TextShow.Generic

Methods

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

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

TextShow1 ((->) a :: Type -> Type) #

Since: 2

Instance details

Defined in TextShow.Functions

Methods

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

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

TextShow c => TextShow1 (K1 i c :: Type -> Type) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> K1 i c a -> Builder #

liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [K1 i c a] -> Builder #

(TextShow1 f, TextShow1 g) => TextShow1 (f :+: g) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

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

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

(TextShow1 f, TextShow1 g) => TextShow1 (f :*: g) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

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

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

(TextShow a, TextShow b, TextShow c) => TextShow1 ((,,,) a b c) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> Int -> (a, b, c, a0) -> Builder #

liftShowbList :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> [(a, b, c, a0)] -> Builder #

(TextShow1 f, TextShow1 g) => TextShow1 (Product f g) #

Since: 3

Instance details

Defined in TextShow.Data.Functor.Product

Methods

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

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

(TextShow1 f, TextShow1 g) => TextShow1 (Sum f g) #

Since: 3

Instance details

Defined in TextShow.Data.Functor.Sum

Methods

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

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

TextShow1 ((:~~:) a :: Type -> Type) #

Since: 3.6

Instance details

Defined in TextShow.Data.Type.Equality

Methods

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

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

TextShow1 f => TextShow1 (M1 i c f) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> M1 i c f a -> Builder #

liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [M1 i c f a] -> Builder #

(TextShow1 f, TextShow1 g) => TextShow1 (f :.: g) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

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

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

(TextShow a, TextShow b, TextShow c, TextShow d) => TextShow1 ((,,,,) a b c d) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> Int -> (a, b, c, d, a0) -> Builder #

liftShowbList :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> [(a, b, c, d, a0)] -> Builder #

(TextShow1 f, TextShow1 g) => TextShow1 (Compose f g) #

Since: 3

Instance details

Defined in TextShow.Data.Functor.Compose

Methods

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

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

(TextShow2 f, TextShow a) => TextShow1 (FromTextShow2 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

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

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

(Show2 f, Show a) => TextShow1 (FromStringShow2 f a) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

Methods

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

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

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e) => TextShow1 ((,,,,,) a b c d e) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> Int -> (a, b, c, d, e, a0) -> Builder #

liftShowbList :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> [(a, b, c, d, e, a0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f) => TextShow1 ((,,,,,,) a b c d e f) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> Int -> (a, b, c, d, e, f, a0) -> Builder #

liftShowbList :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> [(a, b, c, d, e, f, a0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g) => TextShow1 ((,,,,,,,) a b c d e f g) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> Int -> (a, b, c, d, e, f, g, a0) -> Builder #

liftShowbList :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> [(a, b, c, d, e, f, g, a0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h) => TextShow1 ((,,,,,,,,) a b c d e f g h) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> Int -> (a, b, c, d, e, f, g, h, a0) -> Builder #

liftShowbList :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> [(a, b, c, d, e, f, g, h, a0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i) => TextShow1 ((,,,,,,,,,) a b c d e f g h i) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> Int -> (a, b, c, d, e, f, g, h, i, a0) -> Builder #

liftShowbList :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> [(a, b, c, d, e, f, g, h, i, a0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j) => TextShow1 ((,,,,,,,,,,) a b c d e f g h i j) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> Int -> (a, b, c, d, e, f, g, h, i, j, a0) -> Builder #

liftShowbList :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> [(a, b, c, d, e, f, g, h, i, j, a0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k) => TextShow1 ((,,,,,,,,,,,) a b c d e f g h i j k) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> Int -> (a, b, c, d, e, f, g, h, i, j, k, a0) -> Builder #

liftShowbList :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> [(a, b, c, d, e, f, g, h, i, j, k, a0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k, TextShow l) => TextShow1 ((,,,,,,,,,,,,) a b c d e f g h i j k l) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> Int -> (a, b, c, d, e, f, g, h, i, j, k, l, a0) -> Builder #

liftShowbList :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> [(a, b, c, d, e, f, g, h, i, j, k, l, a0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k, TextShow l, TextShow m) => TextShow1 ((,,,,,,,,,,,,,) a b c d e f g h i j k l m) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m, a0) -> Builder #

liftShowbList :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> [(a, b, c, d, e, f, g, h, i, j, k, l, m, a0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k, TextShow l, TextShow m, TextShow n) => TextShow1 ((,,,,,,,,,,,,,,) a b c d e f g h i j k l m n) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, a0) -> Builder #

liftShowbList :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> [(a, b, c, d, e, f, g, h, i, j, k, l, m, n, a0)] -> Builder #

showbPrec1 :: (TextShow1 f, TextShow a) => Int -> f a -> Builder #

Lift the standard showbPrec and showbList functions through the type constructor.

Since: 2

showbUnaryWith :: (Int -> a -> Builder) -> Builder -> Int -> a -> Builder #

showbUnaryWith sp n p x produces the Builder representation of a unary data constructor with name n and argument x, in precedence context p, using the function sp to show occurrences of the type argument.

Since: 2

liftShowtPrec :: TextShow1 f => (Int -> a -> Text) -> ([a] -> Text) -> Int -> f a -> Text #

showtPrec function for an application of the type constructor based on showtPrec and showtList functions for the argument type.

The current implementation is based on liftShowbPrec internally.

Since: 3.4

liftShowtlPrec :: TextShow1 f => (Int -> a -> Text) -> ([a] -> Text) -> Int -> f a -> Text #

showtlPrec function for an application of the type constructor based on showtlPrec and showtlList functions for the argument type.

The current implementation is based on liftShowbPrec internally.

Since: 3.4

TextShow2

class TextShow2 f where #

Lifting of the TextShow class to binary type constructors.

Since: 2

Minimal complete definition

liftShowbPrec2

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> f a b -> Builder #

showbPrec function for an application of the type constructor based on showbPrec and showbList functions for the argument types.

Since: 3

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [f a b] -> Builder #

showbList function for an application of the type constructor based on showbPrec and showbList functions for the argument types. The default implementation using standard list syntax is correct for most types.

Since: 3

Instances
TextShow2 Either #

Since: 2

Instance details

Defined in TextShow.Data.Either

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> Either a b -> Builder #

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [Either a b] -> Builder #

TextShow2 (,) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> (a, b) -> Builder #

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [(a, b)] -> Builder #

TextShow2 ST #

Since: 2

Instance details

Defined in TextShow.Control.Monad.ST

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> ST a b -> Builder #

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [ST a b] -> Builder #

TextShow2 Arg #

Since: 3

Instance details

Defined in TextShow.Data.Semigroup

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> Arg a b -> Builder #

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [Arg a b] -> Builder #

TextShow a => TextShow2 ((,,) a) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> (a, a0, b) -> Builder #

liftShowbList2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [(a, a0, b)] -> Builder #

TextShow2 (Const :: Type -> Type -> Type) #

Since: 2

Instance details

Defined in TextShow.Control.Applicative

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> Const a b -> Builder #

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [Const a b] -> Builder #

TextShow2 (Coercion :: Type -> Type -> Type) #

Since: 2

Instance details

Defined in TextShow.Data.Type.Coercion

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> Coercion a b -> Builder #

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [Coercion a b] -> Builder #

TextShow2 ((:~:) :: Type -> Type -> Type) #

Since: 2

Instance details

Defined in TextShow.Data.Type.Equality

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> (a :~: b) -> Builder #

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [a :~: b] -> Builder #

TextShow2 ((->) :: Type -> Type -> Type) #

Since: 2

Instance details

Defined in TextShow.Functions

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> (a -> b) -> Builder #

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [a -> b] -> Builder #

TextShow2 (K1 i :: Type -> Type -> Type) #

Since: 2

Instance details

Defined in TextShow.GHC.Generics

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> K1 i a b -> Builder #

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [K1 i a b] -> Builder #

(TextShow a, TextShow b) => TextShow2 ((,,,) a b) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> Int -> (a, b, a0, b0) -> Builder #

liftShowbList2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> [(a, b, a0, b0)] -> Builder #

TextShow2 ((:~~:) :: Type -> Type -> Type) #

Since: 3.6

Instance details

Defined in TextShow.Data.Type.Equality

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> (a :~~: b) -> Builder #

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [a :~~: b] -> Builder #

(TextShow a, TextShow b, TextShow c) => TextShow2 ((,,,,) a b c) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> Int -> (a, b, c, a0, b0) -> Builder #

liftShowbList2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> [(a, b, c, a0, b0)] -> Builder #

TextShow2 f => TextShow2 (FromTextShow2 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> FromTextShow2 f a b -> Builder #

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [FromTextShow2 f a b] -> Builder #

Show2 f => TextShow2 (FromStringShow2 f) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> FromStringShow2 f a b -> Builder #

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [FromStringShow2 f a b] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d) => TextShow2 ((,,,,,) a b c d) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> Int -> (a, b, c, d, a0, b0) -> Builder #

liftShowbList2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> [(a, b, c, d, a0, b0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e) => TextShow2 ((,,,,,,) a b c d e) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> Int -> (a, b, c, d, e, a0, b0) -> Builder #

liftShowbList2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> [(a, b, c, d, e, a0, b0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f) => TextShow2 ((,,,,,,,) a b c d e f) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> Int -> (a, b, c, d, e, f, a0, b0) -> Builder #

liftShowbList2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> [(a, b, c, d, e, f, a0, b0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g) => TextShow2 ((,,,,,,,,) a b c d e f g) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> Int -> (a, b, c, d, e, f, g, a0, b0) -> Builder #

liftShowbList2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> [(a, b, c, d, e, f, g, a0, b0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h) => TextShow2 ((,,,,,,,,,) a b c d e f g h) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> Int -> (a, b, c, d, e, f, g, h, a0, b0) -> Builder #

liftShowbList2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> [(a, b, c, d, e, f, g, h, a0, b0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i) => TextShow2 ((,,,,,,,,,,) a b c d e f g h i) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> Int -> (a, b, c, d, e, f, g, h, i, a0, b0) -> Builder #

liftShowbList2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> [(a, b, c, d, e, f, g, h, i, a0, b0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j) => TextShow2 ((,,,,,,,,,,,) a b c d e f g h i j) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> Int -> (a, b, c, d, e, f, g, h, i, j, a0, b0) -> Builder #

liftShowbList2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> [(a, b, c, d, e, f, g, h, i, j, a0, b0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k) => TextShow2 ((,,,,,,,,,,,,) a b c d e f g h i j k) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> Int -> (a, b, c, d, e, f, g, h, i, j, k, a0, b0) -> Builder #

liftShowbList2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> [(a, b, c, d, e, f, g, h, i, j, k, a0, b0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k, TextShow l) => TextShow2 ((,,,,,,,,,,,,,) a b c d e f g h i j k l) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> Int -> (a, b, c, d, e, f, g, h, i, j, k, l, a0, b0) -> Builder #

liftShowbList2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> [(a, b, c, d, e, f, g, h, i, j, k, l, a0, b0)] -> Builder #

(TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k, TextShow l, TextShow m) => TextShow2 ((,,,,,,,,,,,,,,) a b c d e f g h i j k l m) #

Since: 2

Instance details

Defined in TextShow.Data.Tuple

Methods

liftShowbPrec2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m, a0, b0) -> Builder #

liftShowbList2 :: (Int -> a0 -> Builder) -> ([a0] -> Builder) -> (Int -> b0 -> Builder) -> ([b0] -> Builder) -> [(a, b, c, d, e, f, g, h, i, j, k, l, m, a0, b0)] -> Builder #

showbPrec2 :: (TextShow2 f, TextShow a, TextShow b) => Int -> f a b -> Builder #

Lift two showbPrec functions through the type constructor.

Since: 2

showbBinaryWith :: (Int -> a -> Builder) -> (Int -> b -> Builder) -> Builder -> Int -> a -> b -> Builder #

showbBinaryWith sp n p x y produces the Builder representation of a binary data constructor with name n and arguments x and y, in precedence context p, using the functions sp1 and sp2 to show occurrences of the type arguments.

Since: 2

liftShowtPrec2 :: TextShow2 f => (Int -> a -> Text) -> ([a] -> Text) -> (Int -> b -> Text) -> ([b] -> Text) -> Int -> f a b -> Text #

showtPrec function for an application of the type constructor based on showtPrec and showtList functions for the argument type.

The current implementation is based on liftShowbPrec2 internally.

Since: 3.4

liftShowtlPrec2 :: TextShow2 f => (Int -> a -> Text) -> ([a] -> Text) -> (Int -> b -> Text) -> ([b] -> Text) -> Int -> f a b -> Text #

showtlPrec function for an application of the type constructor based on showtlPrec and showtlList functions for the argument type.

The current implementation is based on liftShowbPrec2 internally.

Since: 3.4

Builders

The Builder type

data Builder #

A Builder is an efficient way to build lazy Text values. There are several functions for constructing builders, but only one to inspect them: to extract any data, you have to turn them into lazy Text values using toLazyText.

Internally, a builder constructs a lazy Text by filling arrays piece by piece. As each buffer is filled, it is 'popped' off, to become a new chunk of the resulting lazy Text. All this is hidden from the user of the Builder.

Instances
Eq Builder 
Instance details

Defined in Data.Text.Internal.Builder

Methods

(==) :: Builder -> Builder -> Bool #

(/=) :: Builder -> Builder -> Bool #

Ord Builder 
Instance details

Defined in Data.Text.Internal.Builder

Show Builder 
Instance details

Defined in Data.Text.Internal.Builder

IsString Builder 
Instance details

Defined in Data.Text.Internal.Builder

Methods

fromString :: String -> Builder #

Semigroup Builder 
Instance details

Defined in Data.Text.Internal.Builder

Monoid Builder 
Instance details

Defined in Data.Text.Internal.Builder

TextShow Builder #

Since: 2

Instance details

Defined in TextShow.Data.Text

toText :: Builder -> Text #

Convert a Builder to a strict Text.

Since: 2

toLazyText :: Builder -> Text #

O(n). Extract a lazy Text from a Builder with a default buffer size. The construction work takes place if and when the relevant part of the lazy Text is demanded.

toLazyTextWith :: Int -> Builder -> Text #

O(n). Extract a lazy Text from a Builder, using the given size for the initial buffer. The construction work takes place if and when the relevant part of the lazy Text is demanded.

If the initial buffer is too small to hold all data, subsequent buffers will be the default buffer size.

toString :: Builder -> String #

Convert a Builder to a String (without surrounding it with double quotes, as show would).

Since: 2

Constructing Builders

singleton :: Char -> Builder #

O(1). A Builder taking a single character, satisfying

fromText :: Text -> Builder #

O(1). A Builder taking a Text, satisfying

fromLazyText :: Text -> Builder #

O(1). A Builder taking a lazy Text, satisfying

fromString :: String -> Builder #

O(1). A Builder taking a String, satisfying

Flushing the buffer state

flush :: Builder #

O(1). Pop the strict Text we have constructed so far, if any, yielding a new chunk in the result lazy Text.

Builder utility functions

lengthB :: Builder -> Int64 #

Computes the length of a Builder.

Since: 2

unlinesB :: [Builder] -> Builder #

Merges several Builders, separating them by newlines.

Since: 2

unwordsB :: [Builder] -> Builder #

Merges several Builders, separating them by spaces.

Since: 2

Printing values

printT :: TextShow a => a -> IO () #

Writes a value's strict Text representation to the standard output, followed by a newline.

Since: 2

printTL :: TextShow a => a -> IO () #

Writes a value's lazy Text representation to the standard output, followed by a newline.

Since: 2

hPrintT :: TextShow a => Handle -> a -> IO () #

Writes a value's strict Text representation to a file handle, followed by a newline.

Since: 2

hPrintTL :: TextShow a => Handle -> a -> IO () #

Writes a value's lazy Text representation to a file handle, followed by a newline.

Since: 2

Conversions

Conversion between TextShow and string Show

newtype FromStringShow a #

An adapter newtype, suitable for DerivingVia. The TextShow instance for FromStringShow is based on its String Show instance. That is,

showbPrec p (FromStringShow x) = showsToShowb showsPrec p x

Since: 2

Constructors

FromStringShow 

Fields

Instances
Functor FromStringShow # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

fmap :: (a -> b) -> FromStringShow a -> FromStringShow b #

(<$) :: a -> FromStringShow b -> FromStringShow a #

Foldable FromStringShow # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

fold :: Monoid m => FromStringShow m -> m #

foldMap :: Monoid m => (a -> m) -> FromStringShow a -> m #

foldr :: (a -> b -> b) -> b -> FromStringShow a -> b #

foldr' :: (a -> b -> b) -> b -> FromStringShow a -> b #

foldl :: (b -> a -> b) -> b -> FromStringShow a -> b #

foldl' :: (b -> a -> b) -> b -> FromStringShow a -> b #

foldr1 :: (a -> a -> a) -> FromStringShow a -> a #

foldl1 :: (a -> a -> a) -> FromStringShow a -> a #

toList :: FromStringShow a -> [a] #

null :: FromStringShow a -> Bool #

length :: FromStringShow a -> Int #

elem :: Eq a => a -> FromStringShow a -> Bool #

maximum :: Ord a => FromStringShow a -> a #

minimum :: Ord a => FromStringShow a -> a #

sum :: Num a => FromStringShow a -> a #

product :: Num a => FromStringShow a -> a #

Traversable FromStringShow # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

traverse :: Applicative f => (a -> f b) -> FromStringShow a -> f (FromStringShow b) #

sequenceA :: Applicative f => FromStringShow (f a) -> f (FromStringShow a) #

mapM :: Monad m => (a -> m b) -> FromStringShow a -> m (FromStringShow b) #

sequence :: Monad m => FromStringShow (m a) -> m (FromStringShow a) #

Show1 FromStringShow # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

liftShowsPrec :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> Int -> FromStringShow a -> ShowS #

liftShowList :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> [FromStringShow a] -> ShowS #

TextShow1 FromStringShow # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

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

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

Eq a => Eq (FromStringShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Data a => Data (FromStringShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FromStringShow a -> c (FromStringShow a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (FromStringShow a) #

toConstr :: FromStringShow a -> Constr #

dataTypeOf :: FromStringShow a -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (FromStringShow a)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (FromStringShow a)) #

gmapT :: (forall b. Data b => b -> b) -> FromStringShow a -> FromStringShow a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FromStringShow a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FromStringShow a -> r #

gmapQ :: (forall d. Data d => d -> u) -> FromStringShow a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> FromStringShow a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> FromStringShow a -> m (FromStringShow a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FromStringShow a -> m (FromStringShow a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FromStringShow a -> m (FromStringShow a) #

Ord a => Ord (FromStringShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Read a => Read (FromStringShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Show a => Show (FromStringShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Generic (FromStringShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Associated Types

type Rep (FromStringShow a) :: Type -> Type #

Lift a => Lift (FromStringShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

lift :: FromStringShow a -> Q Exp #

Show a => TextShow (FromStringShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Generic1 FromStringShow # 
Instance details

Defined in TextShow.FromStringTextShow

Associated Types

type Rep1 FromStringShow :: k -> Type #

type Rep (FromStringShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

type Rep (FromStringShow a) = D1 (MetaData "FromStringShow" "TextShow.FromStringTextShow" "text-show-3.7.5-LbA925HAV7Y6CLjRgFEe4N" True) (C1 (MetaCons "FromStringShow" PrefixI True) (S1 (MetaSel (Just "fromStringShow") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)))
type Rep1 FromStringShow # 
Instance details

Defined in TextShow.FromStringTextShow

type Rep1 FromStringShow = D1 (MetaData "FromStringShow" "TextShow.FromStringTextShow" "text-show-3.7.5-LbA925HAV7Y6CLjRgFEe4N" True) (C1 (MetaCons "FromStringShow" PrefixI True) (S1 (MetaSel (Just "fromStringShow") NoSourceUnpackedness NoSourceStrictness DecidedLazy) Par1))

newtype FromTextShow a #

An adapter newtype, suitable for DerivingVia. The String Show instance for FromTextShow is based on its TextShow instance. That is,

showsPrec p (FromTextShow x) = showbToShows showbPrec p x

Since: 2

Constructors

FromTextShow 

Fields

Instances
Functor FromTextShow # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

fmap :: (a -> b) -> FromTextShow a -> FromTextShow b #

(<$) :: a -> FromTextShow b -> FromTextShow a #

Foldable FromTextShow # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

fold :: Monoid m => FromTextShow m -> m #

foldMap :: Monoid m => (a -> m) -> FromTextShow a -> m #

foldr :: (a -> b -> b) -> b -> FromTextShow a -> b #

foldr' :: (a -> b -> b) -> b -> FromTextShow a -> b #

foldl :: (b -> a -> b) -> b -> FromTextShow a -> b #

foldl' :: (b -> a -> b) -> b -> FromTextShow a -> b #

foldr1 :: (a -> a -> a) -> FromTextShow a -> a #

foldl1 :: (a -> a -> a) -> FromTextShow a -> a #

toList :: FromTextShow a -> [a] #

null :: FromTextShow a -> Bool #

length :: FromTextShow a -> Int #

elem :: Eq a => a -> FromTextShow a -> Bool #

maximum :: Ord a => FromTextShow a -> a #

minimum :: Ord a => FromTextShow a -> a #

sum :: Num a => FromTextShow a -> a #

product :: Num a => FromTextShow a -> a #

Traversable FromTextShow # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

traverse :: Applicative f => (a -> f b) -> FromTextShow a -> f (FromTextShow b) #

sequenceA :: Applicative f => FromTextShow (f a) -> f (FromTextShow a) #

mapM :: Monad m => (a -> m b) -> FromTextShow a -> m (FromTextShow b) #

sequence :: Monad m => FromTextShow (m a) -> m (FromTextShow a) #

Show1 FromTextShow # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

liftShowsPrec :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> Int -> FromTextShow a -> ShowS #

liftShowList :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> [FromTextShow a] -> ShowS #

TextShow1 FromTextShow # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

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

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

Eq a => Eq (FromTextShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Data a => Data (FromTextShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FromTextShow a -> c (FromTextShow a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (FromTextShow a) #

toConstr :: FromTextShow a -> Constr #

dataTypeOf :: FromTextShow a -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (FromTextShow a)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (FromTextShow a)) #

gmapT :: (forall b. Data b => b -> b) -> FromTextShow a -> FromTextShow a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FromTextShow a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FromTextShow a -> r #

gmapQ :: (forall d. Data d => d -> u) -> FromTextShow a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> FromTextShow a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> FromTextShow a -> m (FromTextShow a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FromTextShow a -> m (FromTextShow a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FromTextShow a -> m (FromTextShow a) #

Ord a => Ord (FromTextShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Read a => Read (FromTextShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

TextShow a => Show (FromTextShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Generic (FromTextShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Associated Types

type Rep (FromTextShow a) :: Type -> Type #

Methods

from :: FromTextShow a -> Rep (FromTextShow a) x #

to :: Rep (FromTextShow a) x -> FromTextShow a #

Lift a => Lift (FromTextShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

lift :: FromTextShow a -> Q Exp #

TextShow a => TextShow (FromTextShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

Generic1 FromTextShow # 
Instance details

Defined in TextShow.FromStringTextShow

Associated Types

type Rep1 FromTextShow :: k -> Type #

type Rep (FromTextShow a) # 
Instance details

Defined in TextShow.FromStringTextShow

type Rep (FromTextShow a) = D1 (MetaData "FromTextShow" "TextShow.FromStringTextShow" "text-show-3.7.5-LbA925HAV7Y6CLjRgFEe4N" True) (C1 (MetaCons "FromTextShow" PrefixI True) (S1 (MetaSel (Just "fromTextShow") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)))
type Rep1 FromTextShow # 
Instance details

Defined in TextShow.FromStringTextShow

type Rep1 FromTextShow = D1 (MetaData "FromTextShow" "TextShow.FromStringTextShow" "text-show-3.7.5-LbA925HAV7Y6CLjRgFEe4N" True) (C1 (MetaCons "FromTextShow" PrefixI True) (S1 (MetaSel (Just "fromTextShow") NoSourceUnpackedness NoSourceStrictness DecidedLazy) Par1))

newtype FromStringShow1 f a #

An adapter newtype, suitable for DerivingVia. The TextShow1 instance for FromStringShow1 is based on its String Show1 instance. That is,

liftShowbPrec sp sl p (FromStringShow1 x) =
    showsPrecToShowbPrec (liftShowsPrec (showbPrecToShowsPrec sp)
                                            (showbToShows         sl))
                           p x

Since: 3

Constructors

FromStringShow1 

Fields

Instances
Generic1 (FromStringShow1 f :: k -> Type) # 
Instance details

Defined in TextShow.FromStringTextShow

Associated Types

type Rep1 (FromStringShow1 f) :: k -> Type #

Functor f => Functor (FromStringShow1 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

fmap :: (a -> b) -> FromStringShow1 f a -> FromStringShow1 f b #

(<$) :: a -> FromStringShow1 f b -> FromStringShow1 f a #

Foldable f => Foldable (FromStringShow1 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

fold :: Monoid m => FromStringShow1 f m -> m #

foldMap :: Monoid m => (a -> m) -> FromStringShow1 f a -> m #

foldr :: (a -> b -> b) -> b -> FromStringShow1 f a -> b #

foldr' :: (a -> b -> b) -> b -> FromStringShow1 f a -> b #

foldl :: (b -> a -> b) -> b -> FromStringShow1 f a -> b #

foldl' :: (b -> a -> b) -> b -> FromStringShow1 f a -> b #

foldr1 :: (a -> a -> a) -> FromStringShow1 f a -> a #

foldl1 :: (a -> a -> a) -> FromStringShow1 f a -> a #

toList :: FromStringShow1 f a -> [a] #

null :: FromStringShow1 f a -> Bool #

length :: FromStringShow1 f a -> Int #

elem :: Eq a => a -> FromStringShow1 f a -> Bool #

maximum :: Ord a => FromStringShow1 f a -> a #

minimum :: Ord a => FromStringShow1 f a -> a #

sum :: Num a => FromStringShow1 f a -> a #

product :: Num a => FromStringShow1 f a -> a #

Traversable f => Traversable (FromStringShow1 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

traverse :: Applicative f0 => (a -> f0 b) -> FromStringShow1 f a -> f0 (FromStringShow1 f b) #

sequenceA :: Applicative f0 => FromStringShow1 f (f0 a) -> f0 (FromStringShow1 f a) #

mapM :: Monad m => (a -> m b) -> FromStringShow1 f a -> m (FromStringShow1 f b) #

sequence :: Monad m => FromStringShow1 f (m a) -> m (FromStringShow1 f a) #

Show1 f => Show1 (FromStringShow1 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

liftShowsPrec :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> Int -> FromStringShow1 f a -> ShowS #

liftShowList :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> [FromStringShow1 f a] -> ShowS #

Show1 f => TextShow1 (FromStringShow1 f) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

Methods

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

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

Eq (f a) => Eq (FromStringShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

(Typeable a, Typeable f, Typeable k, Data (f a)) => Data (FromStringShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FromStringShow1 f a -> c (FromStringShow1 f a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (FromStringShow1 f a) #

toConstr :: FromStringShow1 f a -> Constr #

dataTypeOf :: FromStringShow1 f a -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (FromStringShow1 f a)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (FromStringShow1 f a)) #

gmapT :: (forall b. Data b => b -> b) -> FromStringShow1 f a -> FromStringShow1 f a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FromStringShow1 f a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FromStringShow1 f a -> r #

gmapQ :: (forall d. Data d => d -> u) -> FromStringShow1 f a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> FromStringShow1 f a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> FromStringShow1 f a -> m (FromStringShow1 f a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FromStringShow1 f a -> m (FromStringShow1 f a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FromStringShow1 f a -> m (FromStringShow1 f a) #

Ord (f a) => Ord (FromStringShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Read (f a) => Read (FromStringShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

(Show1 f, Show a) => Show (FromStringShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Generic (FromStringShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Associated Types

type Rep (FromStringShow1 f a) :: Type -> Type #

Methods

from :: FromStringShow1 f a -> Rep (FromStringShow1 f a) x #

to :: Rep (FromStringShow1 f a) x -> FromStringShow1 f a #

Lift (f a) => Lift (FromStringShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

lift :: FromStringShow1 f a -> Q Exp #

(Show1 f, Show a) => TextShow (FromStringShow1 f a) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

type Rep1 (FromStringShow1 f :: k -> Type) # 
Instance details

Defined in TextShow.FromStringTextShow

type Rep1 (FromStringShow1 f :: k -> Type) = D1 (MetaData "FromStringShow1" "TextShow.FromStringTextShow" "text-show-3.7.5-LbA925HAV7Y6CLjRgFEe4N" True) (C1 (MetaCons "FromStringShow1" PrefixI True) (S1 (MetaSel (Just "fromStringShow1") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec1 f)))
type Rep (FromStringShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

type Rep (FromStringShow1 f a) = D1 (MetaData "FromStringShow1" "TextShow.FromStringTextShow" "text-show-3.7.5-LbA925HAV7Y6CLjRgFEe4N" True) (C1 (MetaCons "FromStringShow1" PrefixI True) (S1 (MetaSel (Just "fromStringShow1") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f a))))

newtype FromTextShow1 f a #

An adapter newtype, suitable for DerivingVia. The String Show1 instance for FromTextShow1 is based on its TextShow1 instance. That is,

liftShowsPrec sp sl p (FromTextShow1 x) =
    showbPrecToShowsPrec (liftShowbPrec (showsPrecToShowbPrec sp)
                                            (showsToShowb         sl))
                           p x

Since: 3

Constructors

FromTextShow1 

Fields

Instances
Generic1 (FromTextShow1 f :: k -> Type) # 
Instance details

Defined in TextShow.FromStringTextShow

Associated Types

type Rep1 (FromTextShow1 f) :: k -> Type #

Methods

from1 :: FromTextShow1 f a -> Rep1 (FromTextShow1 f) a #

to1 :: Rep1 (FromTextShow1 f) a -> FromTextShow1 f a #

Functor f => Functor (FromTextShow1 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

fmap :: (a -> b) -> FromTextShow1 f a -> FromTextShow1 f b #

(<$) :: a -> FromTextShow1 f b -> FromTextShow1 f a #

Foldable f => Foldable (FromTextShow1 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

fold :: Monoid m => FromTextShow1 f m -> m #

foldMap :: Monoid m => (a -> m) -> FromTextShow1 f a -> m #

foldr :: (a -> b -> b) -> b -> FromTextShow1 f a -> b #

foldr' :: (a -> b -> b) -> b -> FromTextShow1 f a -> b #

foldl :: (b -> a -> b) -> b -> FromTextShow1 f a -> b #

foldl' :: (b -> a -> b) -> b -> FromTextShow1 f a -> b #

foldr1 :: (a -> a -> a) -> FromTextShow1 f a -> a #

foldl1 :: (a -> a -> a) -> FromTextShow1 f a -> a #

toList :: FromTextShow1 f a -> [a] #

null :: FromTextShow1 f a -> Bool #

length :: FromTextShow1 f a -> Int #

elem :: Eq a => a -> FromTextShow1 f a -> Bool #

maximum :: Ord a => FromTextShow1 f a -> a #

minimum :: Ord a => FromTextShow1 f a -> a #

sum :: Num a => FromTextShow1 f a -> a #

product :: Num a => FromTextShow1 f a -> a #

Traversable f => Traversable (FromTextShow1 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

traverse :: Applicative f0 => (a -> f0 b) -> FromTextShow1 f a -> f0 (FromTextShow1 f b) #

sequenceA :: Applicative f0 => FromTextShow1 f (f0 a) -> f0 (FromTextShow1 f a) #

mapM :: Monad m => (a -> m b) -> FromTextShow1 f a -> m (FromTextShow1 f b) #

sequence :: Monad m => FromTextShow1 f (m a) -> m (FromTextShow1 f a) #

TextShow1 f => Show1 (FromTextShow1 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

liftShowsPrec :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> Int -> FromTextShow1 f a -> ShowS #

liftShowList :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> [FromTextShow1 f a] -> ShowS #

TextShow1 f => TextShow1 (FromTextShow1 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

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

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

Eq (f a) => Eq (FromTextShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

(==) :: FromTextShow1 f a -> FromTextShow1 f a -> Bool #

(/=) :: FromTextShow1 f a -> FromTextShow1 f a -> Bool #

(Typeable a, Typeable f, Typeable k, Data (f a)) => Data (FromTextShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FromTextShow1 f a -> c (FromTextShow1 f a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (FromTextShow1 f a) #

toConstr :: FromTextShow1 f a -> Constr #

dataTypeOf :: FromTextShow1 f a -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (FromTextShow1 f a)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (FromTextShow1 f a)) #

gmapT :: (forall b. Data b => b -> b) -> FromTextShow1 f a -> FromTextShow1 f a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FromTextShow1 f a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FromTextShow1 f a -> r #

gmapQ :: (forall d. Data d => d -> u) -> FromTextShow1 f a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> FromTextShow1 f a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> FromTextShow1 f a -> m (FromTextShow1 f a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FromTextShow1 f a -> m (FromTextShow1 f a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FromTextShow1 f a -> m (FromTextShow1 f a) #

Ord (f a) => Ord (FromTextShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Read (f a) => Read (FromTextShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

(TextShow1 f, TextShow a) => Show (FromTextShow1 f a) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

Generic (FromTextShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Associated Types

type Rep (FromTextShow1 f a) :: Type -> Type #

Methods

from :: FromTextShow1 f a -> Rep (FromTextShow1 f a) x #

to :: Rep (FromTextShow1 f a) x -> FromTextShow1 f a #

Lift (f a) => Lift (FromTextShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

lift :: FromTextShow1 f a -> Q Exp #

(TextShow1 f, TextShow a) => TextShow (FromTextShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

type Rep1 (FromTextShow1 f :: k -> Type) # 
Instance details

Defined in TextShow.FromStringTextShow

type Rep1 (FromTextShow1 f :: k -> Type) = D1 (MetaData "FromTextShow1" "TextShow.FromStringTextShow" "text-show-3.7.5-LbA925HAV7Y6CLjRgFEe4N" True) (C1 (MetaCons "FromTextShow1" PrefixI True) (S1 (MetaSel (Just "fromTextShow1") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec1 f)))
type Rep (FromTextShow1 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

type Rep (FromTextShow1 f a) = D1 (MetaData "FromTextShow1" "TextShow.FromStringTextShow" "text-show-3.7.5-LbA925HAV7Y6CLjRgFEe4N" True) (C1 (MetaCons "FromTextShow1" PrefixI True) (S1 (MetaSel (Just "fromTextShow1") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f a))))

newtype FromStringShow2 f a b #

An adapter newtype, suitable for DerivingVia. The TextShow2 instance for FromStringShow2 is based on its String Show2 instance. That is,

liftShowbPrec2 sp1 sl1 sp2 sl2 p (FromStringShow2 x) =
    showsPrecToShowbPrec (liftShowsPrec2 (showbPrecToShowsPrec sp1)
                                             (showbToShows         sl1)
                                             (showbPrecToShowsPrec sp2)
                                             (showbToShows         sl2))
                           p x

Since: 3

Constructors

FromStringShow2 

Fields

Instances
Generic1 (FromStringShow2 f a :: k1 -> Type) # 
Instance details

Defined in TextShow.FromStringTextShow

Associated Types

type Rep1 (FromStringShow2 f a) :: k -> Type #

Methods

from1 :: FromStringShow2 f a a0 -> Rep1 (FromStringShow2 f a) a0 #

to1 :: Rep1 (FromStringShow2 f a) a0 -> FromStringShow2 f a a0 #

Bitraversable f => Bitraversable (FromStringShow2 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

bitraverse :: Applicative f0 => (a -> f0 c) -> (b -> f0 d) -> FromStringShow2 f a b -> f0 (FromStringShow2 f c d) #

Bifoldable f => Bifoldable (FromStringShow2 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

bifold :: Monoid m => FromStringShow2 f m m -> m #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> FromStringShow2 f a b -> m #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> FromStringShow2 f a b -> c #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> FromStringShow2 f a b -> c #

Bifunctor f => Bifunctor (FromStringShow2 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

bimap :: (a -> b) -> (c -> d) -> FromStringShow2 f a c -> FromStringShow2 f b d #

first :: (a -> b) -> FromStringShow2 f a c -> FromStringShow2 f b c #

second :: (b -> c) -> FromStringShow2 f a b -> FromStringShow2 f a c #

Show2 f => Show2 (FromStringShow2 f) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

Methods

liftShowsPrec2 :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> (Int -> b -> ShowS) -> ([b] -> ShowS) -> Int -> FromStringShow2 f a b -> ShowS #

liftShowList2 :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> (Int -> b -> ShowS) -> ([b] -> ShowS) -> [FromStringShow2 f a b] -> ShowS #

Show2 f => TextShow2 (FromStringShow2 f) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> FromStringShow2 f a b -> Builder #

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [FromStringShow2 f a b] -> Builder #

Functor (f a) => Functor (FromStringShow2 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

fmap :: (a0 -> b) -> FromStringShow2 f a a0 -> FromStringShow2 f a b #

(<$) :: a0 -> FromStringShow2 f a b -> FromStringShow2 f a a0 #

Foldable (f a) => Foldable (FromStringShow2 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

fold :: Monoid m => FromStringShow2 f a m -> m #

foldMap :: Monoid m => (a0 -> m) -> FromStringShow2 f a a0 -> m #

foldr :: (a0 -> b -> b) -> b -> FromStringShow2 f a a0 -> b #

foldr' :: (a0 -> b -> b) -> b -> FromStringShow2 f a a0 -> b #

foldl :: (b -> a0 -> b) -> b -> FromStringShow2 f a a0 -> b #

foldl' :: (b -> a0 -> b) -> b -> FromStringShow2 f a a0 -> b #

foldr1 :: (a0 -> a0 -> a0) -> FromStringShow2 f a a0 -> a0 #

foldl1 :: (a0 -> a0 -> a0) -> FromStringShow2 f a a0 -> a0 #

toList :: FromStringShow2 f a a0 -> [a0] #

null :: FromStringShow2 f a a0 -> Bool #

length :: FromStringShow2 f a a0 -> Int #

elem :: Eq a0 => a0 -> FromStringShow2 f a a0 -> Bool #

maximum :: Ord a0 => FromStringShow2 f a a0 -> a0 #

minimum :: Ord a0 => FromStringShow2 f a a0 -> a0 #

sum :: Num a0 => FromStringShow2 f a a0 -> a0 #

product :: Num a0 => FromStringShow2 f a a0 -> a0 #

Traversable (f a) => Traversable (FromStringShow2 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

traverse :: Applicative f0 => (a0 -> f0 b) -> FromStringShow2 f a a0 -> f0 (FromStringShow2 f a b) #

sequenceA :: Applicative f0 => FromStringShow2 f a (f0 a0) -> f0 (FromStringShow2 f a a0) #

mapM :: Monad m => (a0 -> m b) -> FromStringShow2 f a a0 -> m (FromStringShow2 f a b) #

sequence :: Monad m => FromStringShow2 f a (m a0) -> m (FromStringShow2 f a a0) #

(Show2 f, Show a) => Show1 (FromStringShow2 f a) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

Methods

liftShowsPrec :: (Int -> a0 -> ShowS) -> ([a0] -> ShowS) -> Int -> FromStringShow2 f a a0 -> ShowS #

liftShowList :: (Int -> a0 -> ShowS) -> ([a0] -> ShowS) -> [FromStringShow2 f a a0] -> ShowS #

(Show2 f, Show a) => TextShow1 (FromStringShow2 f a) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

Methods

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

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

Eq (f a b) => Eq (FromStringShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

(==) :: FromStringShow2 f a b -> FromStringShow2 f a b -> Bool #

(/=) :: FromStringShow2 f a b -> FromStringShow2 f a b -> Bool #

(Typeable a, Typeable b, Typeable f, Typeable k1, Typeable k2, Data (f a b)) => Data (FromStringShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

gfoldl :: (forall d b0. Data d => c (d -> b0) -> d -> c b0) -> (forall g. g -> c g) -> FromStringShow2 f a b -> c (FromStringShow2 f a b) #

gunfold :: (forall b0 r. Data b0 => c (b0 -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (FromStringShow2 f a b) #

toConstr :: FromStringShow2 f a b -> Constr #

dataTypeOf :: FromStringShow2 f a b -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (FromStringShow2 f a b)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (FromStringShow2 f a b)) #

gmapT :: (forall b0. Data b0 => b0 -> b0) -> FromStringShow2 f a b -> FromStringShow2 f a b #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FromStringShow2 f a b -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FromStringShow2 f a b -> r #

gmapQ :: (forall d. Data d => d -> u) -> FromStringShow2 f a b -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> FromStringShow2 f a b -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> FromStringShow2 f a b -> m (FromStringShow2 f a b) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FromStringShow2 f a b -> m (FromStringShow2 f a b) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FromStringShow2 f a b -> m (FromStringShow2 f a b) #

Ord (f a b) => Ord (FromStringShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

Read (f a b) => Read (FromStringShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

(Show2 f, Show a, Show b) => Show (FromStringShow2 f a b) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

Generic (FromStringShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

Associated Types

type Rep (FromStringShow2 f a b) :: Type -> Type #

Methods

from :: FromStringShow2 f a b -> Rep (FromStringShow2 f a b) x #

to :: Rep (FromStringShow2 f a b) x -> FromStringShow2 f a b #

Lift (f a b) => Lift (FromStringShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

lift :: FromStringShow2 f a b -> Q Exp #

(Show2 f, Show a, Show b) => TextShow (FromStringShow2 f a b) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

type Rep1 (FromStringShow2 f a :: k1 -> Type) # 
Instance details

Defined in TextShow.FromStringTextShow

type Rep1 (FromStringShow2 f a :: k1 -> Type) = D1 (MetaData "FromStringShow2" "TextShow.FromStringTextShow" "text-show-3.7.5-LbA925HAV7Y6CLjRgFEe4N" True) (C1 (MetaCons "FromStringShow2" PrefixI True) (S1 (MetaSel (Just "fromStringShow2") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec1 (f a))))
type Rep (FromStringShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

type Rep (FromStringShow2 f a b) = D1 (MetaData "FromStringShow2" "TextShow.FromStringTextShow" "text-show-3.7.5-LbA925HAV7Y6CLjRgFEe4N" True) (C1 (MetaCons "FromStringShow2" PrefixI True) (S1 (MetaSel (Just "fromStringShow2") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f a b))))

newtype FromTextShow2 f a b #

An adapter newtype, suitable for DerivingVia. The String Show2 instance for FromTextShow2 is based on its TextShow2 instance. That is,

liftShowsPrec2 sp1 sl1 sp2 sl2 p (FromTextShow2 x) =
    showbPrecToShowsPrec (liftShowbPrec2 (showsPrecToShowbPrec sp1)
                                             (showsToShowb         sl1)
                                             (showsPrecToShowbPrec sp2)
                                             (showsToShowb         sl2))
                           p x

Since: 3

Constructors

FromTextShow2 

Fields

Instances
Generic1 (FromTextShow2 f a :: k1 -> Type) # 
Instance details

Defined in TextShow.FromStringTextShow

Associated Types

type Rep1 (FromTextShow2 f a) :: k -> Type #

Methods

from1 :: FromTextShow2 f a a0 -> Rep1 (FromTextShow2 f a) a0 #

to1 :: Rep1 (FromTextShow2 f a) a0 -> FromTextShow2 f a a0 #

Bitraversable f => Bitraversable (FromTextShow2 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

bitraverse :: Applicative f0 => (a -> f0 c) -> (b -> f0 d) -> FromTextShow2 f a b -> f0 (FromTextShow2 f c d) #

Bifoldable f => Bifoldable (FromTextShow2 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

bifold :: Monoid m => FromTextShow2 f m m -> m #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> FromTextShow2 f a b -> m #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> FromTextShow2 f a b -> c #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> FromTextShow2 f a b -> c #

Bifunctor f => Bifunctor (FromTextShow2 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

bimap :: (a -> b) -> (c -> d) -> FromTextShow2 f a c -> FromTextShow2 f b d #

first :: (a -> b) -> FromTextShow2 f a c -> FromTextShow2 f b c #

second :: (b -> c) -> FromTextShow2 f a b -> FromTextShow2 f a c #

TextShow2 f => Show2 (FromTextShow2 f) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

Methods

liftShowsPrec2 :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> (Int -> b -> ShowS) -> ([b] -> ShowS) -> Int -> FromTextShow2 f a b -> ShowS #

liftShowList2 :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> (Int -> b -> ShowS) -> ([b] -> ShowS) -> [FromTextShow2 f a b] -> ShowS #

TextShow2 f => TextShow2 (FromTextShow2 f) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> FromTextShow2 f a b -> Builder #

liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [FromTextShow2 f a b] -> Builder #

Functor (f a) => Functor (FromTextShow2 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

fmap :: (a0 -> b) -> FromTextShow2 f a a0 -> FromTextShow2 f a b #

(<$) :: a0 -> FromTextShow2 f a b -> FromTextShow2 f a a0 #

Foldable (f a) => Foldable (FromTextShow2 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

fold :: Monoid m => FromTextShow2 f a m -> m #

foldMap :: Monoid m => (a0 -> m) -> FromTextShow2 f a a0 -> m #

foldr :: (a0 -> b -> b) -> b -> FromTextShow2 f a a0 -> b #

foldr' :: (a0 -> b -> b) -> b -> FromTextShow2 f a a0 -> b #

foldl :: (b -> a0 -> b) -> b -> FromTextShow2 f a a0 -> b #

foldl' :: (b -> a0 -> b) -> b -> FromTextShow2 f a a0 -> b #

foldr1 :: (a0 -> a0 -> a0) -> FromTextShow2 f a a0 -> a0 #

foldl1 :: (a0 -> a0 -> a0) -> FromTextShow2 f a a0 -> a0 #

toList :: FromTextShow2 f a a0 -> [a0] #

null :: FromTextShow2 f a a0 -> Bool #

length :: FromTextShow2 f a a0 -> Int #

elem :: Eq a0 => a0 -> FromTextShow2 f a a0 -> Bool #

maximum :: Ord a0 => FromTextShow2 f a a0 -> a0 #

minimum :: Ord a0 => FromTextShow2 f a a0 -> a0 #

sum :: Num a0 => FromTextShow2 f a a0 -> a0 #

product :: Num a0 => FromTextShow2 f a a0 -> a0 #

Traversable (f a) => Traversable (FromTextShow2 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

traverse :: Applicative f0 => (a0 -> f0 b) -> FromTextShow2 f a a0 -> f0 (FromTextShow2 f a b) #

sequenceA :: Applicative f0 => FromTextShow2 f a (f0 a0) -> f0 (FromTextShow2 f a a0) #

mapM :: Monad m => (a0 -> m b) -> FromTextShow2 f a a0 -> m (FromTextShow2 f a b) #

sequence :: Monad m => FromTextShow2 f a (m a0) -> m (FromTextShow2 f a a0) #

(TextShow2 f, TextShow a) => Show1 (FromTextShow2 f a) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

Methods

liftShowsPrec :: (Int -> a0 -> ShowS) -> ([a0] -> ShowS) -> Int -> FromTextShow2 f a a0 -> ShowS #

liftShowList :: (Int -> a0 -> ShowS) -> ([a0] -> ShowS) -> [FromTextShow2 f a a0] -> ShowS #

(TextShow2 f, TextShow a) => TextShow1 (FromTextShow2 f a) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

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

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

Eq (f a b) => Eq (FromTextShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

(==) :: FromTextShow2 f a b -> FromTextShow2 f a b -> Bool #

(/=) :: FromTextShow2 f a b -> FromTextShow2 f a b -> Bool #

(Typeable a, Typeable b, Typeable f, Typeable k1, Typeable k2, Data (f a b)) => Data (FromTextShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

gfoldl :: (forall d b0. Data d => c (d -> b0) -> d -> c b0) -> (forall g. g -> c g) -> FromTextShow2 f a b -> c (FromTextShow2 f a b) #

gunfold :: (forall b0 r. Data b0 => c (b0 -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (FromTextShow2 f a b) #

toConstr :: FromTextShow2 f a b -> Constr #

dataTypeOf :: FromTextShow2 f a b -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (FromTextShow2 f a b)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (FromTextShow2 f a b)) #

gmapT :: (forall b0. Data b0 => b0 -> b0) -> FromTextShow2 f a b -> FromTextShow2 f a b #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FromTextShow2 f a b -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FromTextShow2 f a b -> r #

gmapQ :: (forall d. Data d => d -> u) -> FromTextShow2 f a b -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> FromTextShow2 f a b -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> FromTextShow2 f a b -> m (FromTextShow2 f a b) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FromTextShow2 f a b -> m (FromTextShow2 f a b) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FromTextShow2 f a b -> m (FromTextShow2 f a b) #

Ord (f a b) => Ord (FromTextShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

compare :: FromTextShow2 f a b -> FromTextShow2 f a b -> Ordering #

(<) :: FromTextShow2 f a b -> FromTextShow2 f a b -> Bool #

(<=) :: FromTextShow2 f a b -> FromTextShow2 f a b -> Bool #

(>) :: FromTextShow2 f a b -> FromTextShow2 f a b -> Bool #

(>=) :: FromTextShow2 f a b -> FromTextShow2 f a b -> Bool #

max :: FromTextShow2 f a b -> FromTextShow2 f a b -> FromTextShow2 f a b #

min :: FromTextShow2 f a b -> FromTextShow2 f a b -> FromTextShow2 f a b #

Read (f a b) => Read (FromTextShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

(TextShow2 f, TextShow a, TextShow b) => Show (FromTextShow2 f a b) #

Not available if using transformers-0.4

Instance details

Defined in TextShow.FromStringTextShow

Methods

showsPrec :: Int -> FromTextShow2 f a b -> ShowS #

show :: FromTextShow2 f a b -> String #

showList :: [FromTextShow2 f a b] -> ShowS #

Generic (FromTextShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

Associated Types

type Rep (FromTextShow2 f a b) :: Type -> Type #

Methods

from :: FromTextShow2 f a b -> Rep (FromTextShow2 f a b) x #

to :: Rep (FromTextShow2 f a b) x -> FromTextShow2 f a b #

Lift (f a b) => Lift (FromTextShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

Methods

lift :: FromTextShow2 f a b -> Q Exp #

(TextShow2 f, TextShow a, TextShow b) => TextShow (FromTextShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

type Rep1 (FromTextShow2 f a :: k1 -> Type) # 
Instance details

Defined in TextShow.FromStringTextShow

type Rep1 (FromTextShow2 f a :: k1 -> Type) = D1 (MetaData "FromTextShow2" "TextShow.FromStringTextShow" "text-show-3.7.5-LbA925HAV7Y6CLjRgFEe4N" True) (C1 (MetaCons "FromTextShow2" PrefixI True) (S1 (MetaSel (Just "fromTextShow2") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec1 (f a))))
type Rep (FromTextShow2 f a b) # 
Instance details

Defined in TextShow.FromStringTextShow

type Rep (FromTextShow2 f a b) = D1 (MetaData "FromTextShow2" "TextShow.FromStringTextShow" "text-show-3.7.5-LbA925HAV7Y6CLjRgFEe4N" True) (C1 (MetaCons "FromTextShow2" PrefixI True) (S1 (MetaSel (Just "fromTextShow2") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f a b))))

showsPrecToShowbPrec :: (Int -> a -> ShowS) -> Int -> a -> Builder #

Convert a precedence-aware ShowS-based show function to a Builder-based one.

Since: 3

showsToShowb :: (a -> ShowS) -> a -> Builder #

Convert a ShowS-based show function to a Builder-based one.

Since: 3

showbPrecToShowsPrec :: (Int -> a -> Builder) -> Int -> a -> ShowS #

Convert a precedence-aware Builder-based show function to a ShowS-based one.

Since: 3

showbToShows :: (a -> Builder) -> a -> ShowS #

Convert a Builder-based show function to a ShowS-based one.

Since: 3

Conversions between Builder, strict Text, and lazy Text

showtPrecToShowbPrec :: (Int -> a -> Text) -> Int -> a -> Builder #

Convert a precedence-aware, strict Text-based show function to a Builder-based one.

Since: 3.4

showtlPrecToShowbPrec :: (Int -> a -> Text) -> Int -> a -> Builder #

Convert a precedence-aware, lazy Text-based show function to a Builder-based one.

Since: 3.4

showtToShowb :: (a -> Text) -> a -> Builder #

Convert a strict Text-based show function to a Builder-based one.

Since: 3.4

showtlToShowb :: (a -> Text) -> a -> Builder #

Convert a lazy Text-based show function to a Builder-based one.

Since: 3.4

showbPrecToShowtPrec :: (Int -> a -> Builder) -> Int -> a -> Text #

Convert a precedence-aware Builder-based show function to a strict Text-based one.

Since: 3.4

showbPrecToShowtlPrec :: (Int -> a -> Builder) -> Int -> a -> Text #

Convert a precedence-aware Builder-based show function to a lazy Text-based one.

Since: 3.4

showbToShowt :: (a -> Builder) -> a -> Text #

Convert a Builder-based show function to a strict Text-based one.

Since: 3

showbToShowtl :: (a -> Builder) -> a -> Text #

Convert a Builder-based show function to a lazy Text-based one.

Since: 3