text-show-instances-3.6: Additional instances for text-show

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

TextShow.Text.PrettyPrint

Contents

Description

Provides TextShow instances 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

Orphan instances

TextShow PrettyLevel Source #

Only available with pretty-1.1.2.0 or later.

Since: 2

TextShow Doc Source #

Since: 2

TextShow PrettyLevel Source #

Only available with pretty-1.1.3 or later.

Since: 3

TextShow TextDetails Source #

Since: 2

TextShow Style Source #

Since: 2

TextShow Mode Source #

Since: 2

TextShow1 Doc Source #

Only available with pretty-1.1.3 or later.

Since: 3

Methods

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

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

TextShow1 AnnotDetails Source #

Only available with pretty-1.1.3 or later.

Since: 3

Methods

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

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

TextShow1 Span Source #

Only available with pretty-1.1.3 or later.

Since: 3

Methods

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

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

TextShow (Doc a) Source #

Only available with pretty-1.1.3 or later.

Since: 3

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 #

Only available with pretty-1.1.3 or later.

Since: 3

TextShow a0 => TextShow (Span a0) Source #

Only available with pretty-1.1.3 or later.

Since: 3

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 #