uulib-0.9.14: Haskell Utrecht Tools Library

UU.PPrint

Description

 

Synopsis

Documentation

data Doc

Instances

class Pretty a where

Methods

pretty :: a -> Doc

Instances

show :: Show a => a -> String

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

putDoc :: Doc -> IO ()

(<>) :: Doc -> Doc -> Doc

(<+>) :: Doc -> Doc -> Doc

(</>) :: Doc -> Doc -> Doc

(<//>) :: Doc -> Doc -> Doc

(<$>) :: Doc -> Doc -> Doc

(<$$>) :: Doc -> Doc -> Doc

sep :: [Doc] -> Doc

fillSep :: [Doc] -> Doc

hsep :: [Doc] -> Doc

vsep :: [Doc] -> Doc

cat :: [Doc] -> Doc

fillCat :: [Doc] -> Doc

hcat :: [Doc] -> Doc

vcat :: [Doc] -> Doc

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

align :: Doc -> Doc

hang :: Int -> Doc -> Doc

indent :: Int -> Doc -> Doc

fill :: Int -> Doc -> Doc

fillBreak :: Int -> Doc -> Doc

list :: [Doc] -> Doc

tupled :: [Doc] -> Doc

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

angles :: Doc -> Doc

parens :: Doc -> Doc

braces :: Doc -> Doc

dot :: Doc

string :: [Char] -> Doc

bool :: Bool -> Doc

int :: Int -> Doc

char :: Char -> Doc

text :: [Char] -> Doc

nest :: Int -> Doc -> Doc

group :: Doc -> Doc

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

nesting :: (Int -> Doc) -> Doc

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