text-show-instances-3.9: 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

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

Instance details

TextShow Doc Source #

Since: 2

Instance details

TextShow PrettyLevel Source #

Only available with pretty-1.1.3 or later.

Since: 3

Instance details

TextShow TextDetails Source #

Since: 2

Instance details

TextShow Style Source #

Since: 2

Instance details

TextShow Mode Source #

Since: 2

Instance details

TextShow1 Doc Source #

Only available with pretty-1.1.3 or later.

Since: 3

Instance details

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

Instance details

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

Instance details

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

Instance details

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 a => TextShow (AnnotDetails a) Source #

Only available with pretty-1.1.3 or later.

Since: 3

Instance details

TextShow a => TextShow (Span a) Source #

Only available with pretty-1.1.3 or later.

Since: 3

Instance details

Methods

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

showb :: Span a -> Builder #

showbList :: [Span a] -> Builder #

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

showt :: Span a -> Text #

showtList :: [Span a] -> Text #

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

showtl :: Span a -> Text #

showtlList :: [Span a] -> Text #