rio-prettyprint-0.1.4.0: Pretty-printing for RIO
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.PrettyPrint.Leijen.Extended

Description

This module re-exports some of the interface for Text.PrettyPrint.Annotated.Leijen along with additional definitions useful for stack.

It defines a Monoid instance for Doc.

Synopsis

Pretty-print typeclass

class Pretty a where Source #

Minimal complete definition

Nothing

Methods

pretty :: a -> StyleDoc Source #

default pretty :: Show a => a -> StyleDoc Source #

Instances

Instances details
Pretty ModuleName Source # 
Instance details

Defined in Text.PrettyPrint.Leijen.Extended

Pretty PrettyException Source # 
Instance details

Defined in RIO.PrettyPrint.PrettyException

Pretty StyleDoc Source # 
Instance details

Defined in Text.PrettyPrint.Leijen.Extended

Pretty (Path b Dir) Source # 
Instance details

Defined in Text.PrettyPrint.Leijen.Extended

Methods

pretty :: Path b Dir -> StyleDoc Source #

Pretty (Path b File) Source # 
Instance details

Defined in Text.PrettyPrint.Leijen.Extended

Methods

pretty :: Path b File -> StyleDoc Source #

Ansi terminal Doc

newtype StyleDoc Source #

A document annotated by a style

Constructors

StyleDoc 

newtype StyleAnn Source #

A style annotation.

Constructors

StyleAnn (Maybe Style) 

Selective re-exports from Text.PrettyPrint.Annotated.Leijen

Documents, parametrized by their annotations

Basic combinators

Alignment

Operators

List combinators

Fillers

Bracketing combinators

Character documents

Primitive type documents

string :: String -> StyleDoc Source #

The document string s concatenates all characters in s using line for newline characters and char for all other characters. It is used whenever the text contains newline characters.

Since: 0.1.4.0

Semantic annotations

Rendering

Undocumented