uulib-0.9.20: Haskell Utrecht Tools Library

Safe Haskell | Safe
Language | Haskell98

UU.Pretty.Basic

# Documentation

class Show a => PP a where Source

Minimal complete definition

Nothing

Methods

pp :: a -> PP_Doc Source

ppList :: [a] -> PP_Doc Source

Instances

PP Char Source |
PP PP_Doc Source |
PP a => PP [a] Source |

data PP_Doc Source

Instances

Show PP_Doc Source |
PP PP_Doc Source |

data PP_Exp Source

empty :: PP_Doc Source

text :: String -> PP_Doc Source

indent :: PP a => Int -> a -> PP_Doc Source

(>|<) :: (PP a, PP b) => a -> b -> PP_Doc infixr 3 Source

(>-<) :: (PP a, PP b) => a -> b -> PP_Doc infixr 2 Source

fill :: PP a => [a] -> PP_Doc Source

fillblock :: PP a => Int -> [a] -> PP_Doc Source

(>//<) :: (PP a, PP b) => a -> b -> PP_Doc infixr 1 Source

join :: PP_Doc -> PP_Doc Source

par :: PP_Exp Source

(>>$<) :: PP a => PP_Exp -> [a] -> PP_Doc infixr 0 Source

eindent :: Int -> PP_Exp -> PP_Exp Source

(>>|<<) :: PP_Exp -> PP_Exp -> PP_Exp infixr 3 Source

(>>-<<) :: PP_Exp -> PP_Exp -> PP_Exp infixr 2 Source

(>>//<<) :: PP_Exp -> PP_Exp -> PP_Exp infixr 1 Source

ejoin :: PP_Exp -> PP_Exp Source

(>>$<<) :: PP_Exp -> [PP_Exp] -> PP_Exp infixr 0 Source

render :: PP_Doc -> Int -> IO () Source

renderAll :: PP_Doc -> Int -> IO () Source

disp :: PP_Doc -> Int -> ShowS Source

c2e :: PP a => a -> PP_Exp Source

element_h1 :: PP_Doc -> PP_Doc Source

eelement_h1 :: PP_Exp -> PP_Exp Source

vcenter :: PP a => [a] -> PP_Doc Source

invisible :: PP_Doc -> PP_Doc Source

fpar :: PP_Exp Source

spar :: PP_Exp Source