uulib-0.9.15: Haskell Utrecht Tools Library

Safe HaskellSafe-Inferred

UU.PPrint

Description

 

Synopsis

Documentation

data Doc Source

Instances

class Pretty a whereSource

Methods

pretty :: a -> DocSource

Instances

show :: Show a => a -> String

A specialised variant of showsPrec, using precedence context zero, and returning an ordinary String.

sep :: [Doc] -> DocSource

cat :: [Doc] -> DocSource

punctuate :: Doc -> [Doc] -> [Doc]Source

encloseSep :: Doc -> Doc -> Doc -> [Doc] -> DocSource

column :: (Int -> Doc) -> DocSource

width :: Doc -> (Int -> Doc) -> DocSource