syntax-pretty-0.1.0.0: Syntax instance for pretty, the pretty printing library.

Copyright(c) Paweł Nowak
LicenseMIT
MaintainerPaweł Nowak <pawel834@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.Syntax.Pretty

Description

Provides a Syntax instance for Text.PrettyPrint.

Synopsis

Documentation

newtype Printer a Source

A printer is a function a -> Either String Doc.

Constructors

Printer 

Fields

runPrinter :: a -> Either String Doc

Runs the printer.

Instances

SemiIsoFunctor Printer 
SemiIsoApply Printer 
SemiIsoAlternative Printer 
Syntax Printer Text