uulib-0.9.23: Haskell Utrecht Tools Library

Safe HaskellSafe
LanguageHaskell98

UU.PPrint

Description

 
Synopsis

Documentation

data Doc Source #

Instances
Show Doc Source # 
Instance details

Defined in UU.PPrint

Methods

showsPrec :: Int -> Doc -> ShowS #

show :: Doc -> String #

showList :: [Doc] -> ShowS #

Pretty Doc Source # 
Instance details

Defined in UU.PPrint

Methods

pretty :: Doc -> Doc Source #

prettyList :: [Doc] -> Doc

class Pretty a Source #

Minimal complete definition

pretty

Instances
Pretty Bool Source # 
Instance details

Defined in UU.PPrint

Methods

pretty :: Bool -> Doc Source #

prettyList :: [Bool] -> Doc

Pretty Char Source # 
Instance details

Defined in UU.PPrint

Methods

pretty :: Char -> Doc Source #

prettyList :: [Char] -> Doc

Pretty Double Source # 
Instance details

Defined in UU.PPrint

Pretty Float Source # 
Instance details

Defined in UU.PPrint

Methods

pretty :: Float -> Doc Source #

prettyList :: [Float] -> Doc

Pretty Int Source # 
Instance details

Defined in UU.PPrint

Methods

pretty :: Int -> Doc Source #

prettyList :: [Int] -> Doc

Pretty Integer Source # 
Instance details

Defined in UU.PPrint

Pretty () Source # 
Instance details

Defined in UU.PPrint

Methods

pretty :: () -> Doc Source #

prettyList :: [()] -> Doc

Pretty Doc Source # 
Instance details

Defined in UU.PPrint

Methods

pretty :: Doc -> Doc Source #

prettyList :: [Doc] -> Doc

Pretty a => Pretty [a] Source # 
Instance details

Defined in UU.PPrint

Methods

pretty :: [a] -> Doc Source #

prettyList :: [[a]] -> Doc

Pretty a => Pretty (Maybe a) Source # 
Instance details

Defined in UU.PPrint

Methods

pretty :: Maybe a -> Doc Source #

prettyList :: [Maybe a] -> Doc

(Pretty a, Pretty b) => Pretty (a, b) Source # 
Instance details

Defined in UU.PPrint

Methods

pretty :: (a, b) -> Doc Source #

prettyList :: [(a, b)] -> Doc

(Pretty a, Pretty b, Pretty c) => Pretty (a, b, c) Source # 
Instance details

Defined in UU.PPrint

Methods

pretty :: (a, b, c) -> Doc Source #

prettyList :: [(a, b, c)] -> Doc

pretty :: Pretty a => a -> Doc Source #

show :: Show a => a -> String #

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

putDoc :: Doc -> IO () Source #

hPutDoc :: Handle -> Doc -> IO () Source #

(<>) :: Doc -> Doc -> Doc infixr 6 Source #

(<+>) :: Doc -> Doc -> Doc infixr 6 Source #

(</>) :: Doc -> Doc -> Doc infixr 5 Source #

(<//>) :: Doc -> Doc -> Doc infixr 5 Source #

(<$>) :: Doc -> Doc -> Doc infixr 5 Source #

(<$$>) :: Doc -> Doc -> Doc infixr 5 Source #

sep :: [Doc] -> Doc Source #

hsep :: [Doc] -> Doc Source #

vsep :: [Doc] -> Doc Source #

cat :: [Doc] -> Doc Source #

hcat :: [Doc] -> Doc Source #

vcat :: [Doc] -> Doc Source #

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

hang :: Int -> Doc -> Doc Source #

fill :: Int -> Doc -> Doc Source #

list :: [Doc] -> Doc Source #

encloseSep :: Doc -> Doc -> Doc -> [Doc] -> Doc Source #

text :: [Char] -> Doc Source #

nest :: Int -> Doc -> Doc Source #

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

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

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