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

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

Text.Show.Text.GHC.Generics

Description

Monomorphic Show functions for generics-related data types.

Since: 0.3

Synopsis

Documentation

showbU1 :: U1 p -> Builder Source

Convert a U1 value to a Builder.

Since: 0.3

showbPar1PrecWith :: (Int -> p -> Builder) -> Int -> Par1 p -> Builder Source

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

Since: 1

showbRec1Prec :: Show (f p) => Int -> Rec1 f p -> Builder Source

Convert a Rec1 value to a Builder with the given precedence.

Since: 0.3

showbRec1PrecWith :: Show1 f => (Int -> p -> Builder) -> Int -> Rec1 f p -> Builder Source

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

Since: 1

showbK1PrecWith :: (Int -> c -> Builder) -> Int -> K1 i c p -> Builder Source

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

Since: 1

showbM1Prec :: Show (f p) => Int -> M1 i c f p -> Builder Source

Convert an M1 value to a Builder with the given precedence.

Since: 0.3

showbM1PrecWith :: Show1 f => (Int -> p -> Builder) -> Int -> M1 i c f p -> Builder Source

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

Since: 1

showbSumTypePrec :: (Show (f p), Show (g p)) => Int -> (f :+: g) p -> Builder Source

Convert a '(:+:)' value to a Builder with the given precedence.

Since: 0.3

showbSumTypePrecWith :: (Show1 f, Show1 g) => (Int -> p -> Builder) -> Int -> (f :+: g) p -> Builder Source

Convert a '(:+:)' value to a Builder with the given show function and precedence.

Since: 1

showbProductTypePrec :: (Show (f p), Show (g p)) => Int -> (f :*: g) p -> Builder Source

Convert a '(:*:)' value to a Builder with the given precedence.

Since: 0.3

showbProductTypePrecWith :: (Show1 f, Show1 g) => (Int -> p -> Builder) -> Int -> (f :*: g) p -> Builder Source

Convert a '(:*:)' value to a Builder with the given show function and precedence.

Since: 1

showbCompFunctorsPrec :: Show (f (g p)) => Int -> (f :.: g) p -> Builder Source

Convert a '(:.:)' value to a Builder with the given precedence.

Since: 0.3

showbCompFunctorsPrecWith :: (Show1 f, Show1 g) => (Int -> p -> Builder) -> Int -> (f :.: g) p -> Builder Source

Convert a '(:.:)' value to a Builder with the given show function and precedence. This function is only available with base-4.4.0.0 or later.

Since: 1

showbFixityPrec :: Int -> Fixity -> Builder Source

Convert a Fixity value to a Builder with the given precedence.

Since: 0.3

showbAssociativity :: Associativity -> Builder Source

Convert an Associativity value to a Builder. This function is only available with base-4.4.0.0 or later.

Since: 0.3

showbArityPrec :: Int -> Arity -> Builder Source

Convert an Arity value to a Builder with the given precedence.

Since: 0.3