prettyprinter-configurable-0.1.0.0.0.0.0.0.1
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.PrettyBy.Default

Description

Default rendering to string types.

Synopsis

Documentation

layoutDef :: Doc ann -> SimpleDocStream ann Source #

A default layout for default rendering.

class Render str where Source #

A class for rendering Docs as string types.

Methods

render :: Doc ann -> str Source #

Render a Doc as a string type.

Instances

Instances details
Render Text Source # 
Instance details

Defined in Text.PrettyBy.Default

Methods

render :: Doc ann -> Text Source #

Render Text Source # 
Instance details

Defined in Text.PrettyBy.Default

Methods

render :: Doc ann -> Text Source #

a ~ Char => Render [a] Source # 
Instance details

Defined in Text.PrettyBy.Default

Methods

render :: Doc ann -> [a] Source #

display :: forall str a. (Pretty a, Render str) => a -> str Source #

Pretty-print and render a value as a string type.

displayBy :: forall str a config. (PrettyBy config a, Render str) => config -> a -> str Source #

Pretty-print and render a value as a string type in a configurable way.