ContentsIndex
Util.Pretty.Comb
Documentation
class Pretty a where
Methods
pretty :: a -> String
prettyp :: a -> PrettyP
show/hide Instances
data PrettyP
Constructors
PString String
PChar Char
PList [PrettyP]
PAppend [PrettyP]
PIndent PrettyP
PTabAdd Int
PTabInc
PTabDec
PTabNext
PAnnot String
show/hide Instances
data RenderS
Constructors
RenderS
stateTabWidth :: Int
stateIndent :: Int
stateCol :: Int
render :: PrettyP -> String
spaceTab :: RenderS -> [PrettyP] -> [PrettyP]
reduce :: (?state :: RenderS) -> PrettyP -> [PrettyP]
type PComb2 = (Pretty a, Pretty b) => a -> b -> PrettyP
(%) :: PComb2
(%!%) :: (Pretty a, Pretty b) => a -> [b] -> PrettyP
Produced by Haddock version 0.7