Text.PrettyBy.Default
Description
Default rendering to string types.
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.
Doc
Methods
render :: Doc ann -> str Source #
Render a Doc as a string type.
Defined in Text.PrettyBy.Default
render :: Doc ann -> Text Source #
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.