rio-prettyprint-0.1.1.0: Pretty-printing for RIO

Safe HaskellNone
LanguageHaskell2010

Text.PrettyPrint.Leijen.Extended

Contents

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 #

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

Instances
Pretty ModuleName Source # 
Instance details

Defined in Text.PrettyPrint.Leijen.Extended

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

data StyleDoc Source #

A document annotated by a style

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

Semantic annotations

Rendering

Undocumented