prettyprinter-configurable-1.1.0.0
Safe Haskell None
Language Haskell2010

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 Doc s 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

Render Text Source #
Instance details

Defined in Text.PrettyBy.Default

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.