text-show-instances-3.4: Additional instances for text-show

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

TextShow.Text.PrettyPrint

Contents

Description

Monomorphic TextShow functions for data types in the pretty library.

Since: 2

Synopsis

Documentation

renderB :: Doc -> Builder Source #

Renders a Doc to a Builder using the default style.

Since: 2

renderStyleB :: Style -> Doc -> Builder Source #

Renders a Doc to a Builder using the given Style.

Since: 2

renderAnnotB :: Doc a -> Builder Source #

Renders an annotated Doc to a Builder using the default style. This function is only available with pretty-1.1.3 or later.

Since: 3

renderStyleAnnotB :: Style -> Doc a -> Builder Source #

Renders an annotated Doc to a Builder using the given Style. This function is only available with pretty-1.1.3 or later.

Since: 3

showbMode :: Mode -> Builder Source #

Convert a Mode to a Builder.

Since: 2

showbStylePrec :: Int -> Style -> Builder Source #

Convert a Style to a Builder with the given precedence.

Since: 2

showbTextDetailsPrec :: Int -> TextDetails -> Builder Source #

Convert TextDetails to a Builder with the given precedence.

Since: 2

showbPrettyLevelPrec :: Int -> PrettyLevel -> Builder Source #

Convert a PrettyLevel value to a Builder with the given precedence. This function is only available with pretty-1.1.2.0 or later.

Since: 2

liftShowbAnnotDetailsPrec :: (Int -> a -> Builder) -> Int -> AnnotDetails a -> Builder Source #

Convert an AnnotDetais value to a Builder with the given show function and precedence. This function is only available with pretty-1.1.3 or later.

Since: 3

showbPrettyLevelAnnotPrec :: Int -> PrettyLevel -> Builder Source #

Convert an annotated PrettyLevel value to a Builder with the given precedence. This function is only available with pretty-1.1.3 or later.

Since: 3

liftShowbSpanPrec :: (Int -> a -> Builder) -> Int -> Span a -> Builder Source #

Convert a Span to a Builder with the given show function and precedence. This function is only available with pretty-1.1.3 or later.

Since: 3

Orphan instances

TextShow PrettyLevel Source # 
TextShow Doc Source # 
TextShow PrettyLevel Source # 
TextShow TextDetails Source # 
TextShow Style Source # 
TextShow Mode Source # 
TextShow1 Doc Source # 

Methods

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

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

TextShow1 AnnotDetails Source # 

Methods

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

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

TextShow1 Span Source # 

Methods

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

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

TextShow (Doc a) Source # 

Methods

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

showb :: Doc a -> Builder #

showbList :: [Doc a] -> Builder #

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

showt :: Doc a -> Text #

showtList :: [Doc a] -> Text #

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

showtl :: Doc a -> Text #

showtlList :: [Doc a] -> Text #

TextShow a0 => TextShow (AnnotDetails a0) Source # 
TextShow a0 => TextShow (Span a0) Source # 

Methods

showbPrec :: Int -> Span a0 -> Builder #

showb :: Span a0 -> Builder #

showbList :: [Span a0] -> Builder #

showtPrec :: Int -> Span a0 -> Text #

showt :: Span a0 -> Text #

showtList :: [Span a0] -> Text #

showtlPrec :: Int -> Span a0 -> Text #

showtl :: Span a0 -> Text #

showtlList :: [Span a0] -> Text #