prettyprinter-configurable-1.30.0.0: Configurable pretty-printing
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 ~ CharRender [a] Source # 
Instance details

Defined in Text.PrettyBy.Default

Methods

render ∷ Doc ann → [a] Source #

display ∷ ∀ str a. (Pretty a, Render str) ⇒ a → str Source #

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

displayBy ∷ ∀ 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.