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

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

TextShow.Data.Either

Contents

Description

Monomorphic TextShow function for Either values.

Since: 2

Synopsis

Documentation

liftShowbEitherPrec2 :: (Int -> a -> Builder) -> (Int -> b -> Builder) -> Int -> Either a b -> Builder Source #

Convert a Either value to a Builder with the given show functions and precedence.

Since: 3

Orphan instances

TextShow2 Either Source # 

Methods

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

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

TextShow a0 => TextShow1 (Either a0) Source # 

Methods

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

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

(TextShow a0, TextShow b0) => TextShow (Either a0 b0) Source # 

Methods

showbPrec :: Int -> Either a0 b0 -> Builder Source #

showb :: Either a0 b0 -> Builder Source #

showbList :: [Either a0 b0] -> Builder Source #

showtPrec :: Int -> Either a0 b0 -> Text Source #

showt :: Either a0 b0 -> Text Source #

showtList :: [Either a0 b0] -> Text Source #

showtlPrec :: Int -> Either a0 b0 -> Text Source #

showtl :: Either a0 b0 -> Text Source #

showtlList :: [Either a0 b0] -> Text Source #