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

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

TextShow.GHC.Generics

Contents

- Orphan instances

Description

`TextShow` instances for generics-related data types.

Since: 2

# Orphan instances

TextShow Associativity Source # | Since: 2

Instance details

Methods

showbPrec :: Int -> Associativity -> Builder Source #

showb :: Associativity -> Builder Source #

showbList :: [Associativity] -> Builder Source #

showtPrec :: Int -> Associativity -> Text Source #

showt :: Associativity -> Text Source #

showtList :: [Associativity] -> Text Source #

showtlPrec :: Int -> Associativity -> Text Source #

showtl :: Associativity -> Text Source #

showtlList :: [Associativity] -> Text Source #

TextShow DecidedStrictness Source # | Only available with `base-4.9.0.0` or later. Since: 3

Instance details

Methods

showbPrec :: Int -> DecidedStrictness -> Builder Source #

showb :: DecidedStrictness -> Builder Source #

showbList :: [DecidedStrictness] -> Builder Source #

showtPrec :: Int -> DecidedStrictness -> Text Source #

showt :: DecidedStrictness -> Text Source #

showtList :: [DecidedStrictness] -> Text Source #

showtlPrec :: Int -> DecidedStrictness -> Text Source #

showtl :: DecidedStrictness -> Text Source #

showtlList :: [DecidedStrictness] -> Text Source #

TextShow Fixity Source # | Since: 2
Instance details Methods showbPrec :: Int -> Fixity -> Builder Source # showb :: Fixity -> Builder Source # showbList :: [Fixity] -> Builder Source # showtPrec :: Int -> Fixity -> Text Source # showt :: Fixity -> Text Source # showtList :: [Fixity] -> Text Source # showtlPrec :: Int -> Fixity -> Text Source # showtl :: Fixity -> Text Source # showtlList :: [Fixity] -> Text Source #
TextShow SourceStrictness Source # | Only available with `base-4.9.0.0` or later. Since: 3

Instance details

Methods

showbPrec :: Int -> SourceStrictness -> Builder Source #

showb :: SourceStrictness -> Builder Source #

showbList :: [SourceStrictness] -> Builder Source #

showtPrec :: Int -> SourceStrictness -> Text Source #

showt :: SourceStrictness -> Text Source #

showtList :: [SourceStrictness] -> Text Source #

showtlPrec :: Int -> SourceStrictness -> Text Source #

showtl :: SourceStrictness -> Text Source #

showtlList :: [SourceStrictness] -> Text Source #

TextShow SourceUnpackedness Source # | Only available with `base-4.9.0.0` or later. Since: 3

Instance details

Methods

showbPrec :: Int -> SourceUnpackedness -> Builder Source #

showb :: SourceUnpackedness -> Builder Source #

showbList :: [SourceUnpackedness] -> Builder Source #

showtPrec :: Int -> SourceUnpackedness -> Text Source #

showt :: SourceUnpackedness -> Text Source #

showtList :: [SourceUnpackedness] -> Text Source #

showtlPrec :: Int -> SourceUnpackedness -> Text Source #

showtl :: SourceUnpackedness -> Text Source #

showtlList :: [SourceUnpackedness] -> Text Source #

TextShow1 Par1 Source # | Since: 2
Instance details Methods liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> Par1 a -> Builder Source # liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [Par1 a] -> Builder Source #
TextShow p => TextShow (Par1 p) Source # | Since: 2
Instance details Methods showbPrec :: Int -> Par1 p -> Builder Source # showb :: Par1 p -> Builder Source # showbList :: [Par1 p] -> Builder Source # showtPrec :: Int -> Par1 p -> Text Source # showt :: Par1 p -> Text Source # showtList :: [Par1 p] -> Text Source # showtlPrec :: Int -> Par1 p -> Text Source # showtl :: Par1 p -> Text Source # showtlList :: [Par1 p] -> Text Source #
TextShow1 (U1 :: Type -> Type) Source # | Since: 2
Instance details Methods liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> U1 a -> Builder Source # liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [U1 a] -> Builder Source #
TextShow (U1 p) Source # | Since: 2
Instance details Methods showbPrec :: Int -> U1 p -> Builder Source # showb :: U1 p -> Builder Source # showbList :: [U1 p] -> Builder Source # showtPrec :: Int -> U1 p -> Text Source # showt :: U1 p -> Text Source # showtList :: [U1 p] -> Text Source # showtlPrec :: Int -> U1 p -> Text Source # showtl :: U1 p -> Text Source # showtlList :: [U1 p] -> Text Source #
TextShow (UChar p) Source # | Since: 2.1.2
Instance details Methods showbPrec :: Int -> UChar p -> Builder Source # showb :: UChar p -> Builder Source # showbList :: [UChar p] -> Builder Source # showtPrec :: Int -> UChar p -> Text Source # showt :: UChar p -> Text Source # showtList :: [UChar p] -> Text Source # showtlPrec :: Int -> UChar p -> Text Source # showtl :: UChar p -> Text Source # showtlList :: [UChar p] -> Text Source #
TextShow (UDouble p) Source # | Since: 2.1.2

Instance details

Methods

showbPrec :: Int -> UDouble p -> Builder Source #

showb :: UDouble p -> Builder Source #

showbList :: [UDouble p] -> Builder Source #

showtPrec :: Int -> UDouble p -> Text Source #

showt :: UDouble p -> Text Source #

showtList :: [UDouble p] -> Text Source #

showtlPrec :: Int -> UDouble p -> Text Source #

showtl :: UDouble p -> Text Source #

showtlList :: [UDouble p] -> Text Source #

TextShow (UFloat p) Source # | Since: 2.1.2

Instance details

Methods

showbPrec :: Int -> UFloat p -> Builder Source #

showb :: UFloat p -> Builder Source #

showbList :: [UFloat p] -> Builder Source #

showtPrec :: Int -> UFloat p -> Text Source #

showt :: UFloat p -> Text Source #

showtList :: [UFloat p] -> Text Source #

showtlPrec :: Int -> UFloat p -> Text Source #

showtl :: UFloat p -> Text Source #

showtlList :: [UFloat p] -> Text Source #

TextShow (UInt p) Source # | Since: 2.1.2
Instance details Methods showbPrec :: Int -> UInt p -> Builder Source # showb :: UInt p -> Builder Source # showbList :: [UInt p] -> Builder Source # showtPrec :: Int -> UInt p -> Text Source # showt :: UInt p -> Text Source # showtList :: [UInt p] -> Text Source # showtlPrec :: Int -> UInt p -> Text Source # showtl :: UInt p -> Text Source # showtlList :: [UInt p] -> Text Source #
TextShow (UWord p) Source # | Since: 2.1.2
Instance details Methods showbPrec :: Int -> UWord p -> Builder Source # showb :: UWord p -> Builder Source # showbList :: [UWord p] -> Builder Source # showtPrec :: Int -> UWord p -> Text Source # showt :: UWord p -> Text Source # showtList :: [UWord p] -> Text Source # showtlPrec :: Int -> UWord p -> Text Source # showtl :: UWord p -> Text Source # showtlList :: [UWord p] -> Text Source #
TextShow1 f => TextShow1 (Rec1 f) Source # | Since: 2
Instance details Methods liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> Rec1 f a -> Builder Source # liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [Rec1 f a] -> Builder Source #
TextShow1 (URec Char :: Type -> Type) Source # | Since: 2.1.2
Instance details Methods liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> URec Char a -> Builder Source # liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [URec Char a] -> Builder Source #
TextShow1 (URec Double :: Type -> Type) Source # | Since: 2.1.2
Instance details Methods liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> URec Double a -> Builder Source # liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [URec Double a] -> Builder Source #
TextShow1 (URec Float :: Type -> Type) Source # | Since: 2.1.2
Instance details Methods liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> URec Float a -> Builder Source # liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [URec Float a] -> Builder Source #
TextShow1 (URec Int :: Type -> Type) Source # | Since: 2.1.2
Instance details Methods liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> URec Int a -> Builder Source # liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [URec Int a] -> Builder Source #
TextShow1 (URec Word :: Type -> Type) Source # | Since: 2.1.2
Instance details Methods liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> URec Word a -> Builder Source # liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [URec Word a] -> Builder Source #
TextShow2 (K1 i :: Type -> Type -> Type) Source # | Since: 2
Instance details Methods liftShowbPrec2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> Int -> K1 i a b -> Builder Source # liftShowbList2 :: (Int -> a -> Builder) -> ([a] -> Builder) -> (Int -> b -> Builder) -> ([b] -> Builder) -> [K1 i a b] -> Builder Source #
TextShow (f p) => TextShow (Rec1 f p) Source # | Since: 2

Instance details

Methods

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

showb :: Rec1 f p -> Builder Source #

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

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

showt :: Rec1 f p -> Text Source #

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

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

showtl :: Rec1 f p -> Text Source #

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

(TextShow1 f, TextShow1 g) => TextShow1 (f :*: g) Source # | Since: 2
Instance details Methods liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> (f :*: g) a -> Builder Source # liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [(f :*: g) a] -> Builder Source #
(TextShow1 f, TextShow1 g) => TextShow1 (f :+: g) Source # | Since: 2
Instance details Methods liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> (f :+: g) a -> Builder Source # liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [(f :+: g) a] -> Builder Source #
TextShow c => TextShow1 (K1 i c :: Type -> Type) Source # | Since: 2
Instance details Methods liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> K1 i c a -> Builder Source # liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [K1 i c a] -> Builder Source #
(TextShow (f p), TextShow (g p)) => TextShow ((f :*: g) p) Source # | Since: 2

Instance details

Methods

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

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

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

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

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

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

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

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

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

(TextShow (f p), TextShow (g p)) => TextShow ((f :+: g) p) Source # | Since: 2

Instance details

Methods

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

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

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

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

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

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

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

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

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

TextShow c => TextShow (K1 i c p) Source # | Since: 2

Instance details

Methods

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

showb :: K1 i c p -> Builder Source #

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

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

showt :: K1 i c p -> Text Source #

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

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

showtl :: K1 i c p -> Text Source #

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

(TextShow1 f, TextShow1 g) => TextShow1 (f :.: g) Source # | Since: 2
Instance details Methods liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> (f :.: g) a -> Builder Source # liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [(f :.: g) a] -> Builder Source #
TextShow1 f => TextShow1 (M1 i c f) Source # | Since: 2
Instance details Methods liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> M1 i c f a -> Builder Source # liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [M1 i c f a] -> Builder Source #
TextShow (f (g p)) => TextShow ((f :.: g) p) Source # | Since: 2

Instance details

Methods

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

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

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

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

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

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

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

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

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

TextShow (f p) => TextShow (M1 i c f p) Source # | Since: 2

Instance details

Methods

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

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

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

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

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

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

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

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

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