mpppc-0.1.2: Multi-dimensional parametric pretty-printer with color

Text.PrettyPrint.MPPPC.OneDim

Documentation

align :: Pretty s t -> Pretty s tSource

encloseSep :: Printable s t => Pretty s t -> Pretty s t -> Pretty s t -> [Pretty s t] -> Pretty s tSource

hang :: Int -> Pretty s t -> Pretty s tSource

indent :: Printable s t => Int -> Pretty s t -> Pretty s tSource

list :: Printable s t => [Pretty s t] -> Pretty s tSource

semiBraces :: Printable s t => [Pretty s t] -> Pretty s tSource

tupled :: Printable s t => [Pretty s t] -> Pretty s tSource

black :: Pretty s t -> Pretty s tSource

red :: Pretty s t -> Pretty s tSource

green :: Pretty s t -> Pretty s tSource

yellow :: Pretty s t -> Pretty s tSource

blue :: Pretty s t -> Pretty s tSource

cyan :: Pretty s t -> Pretty s tSource

white :: Pretty s t -> Pretty s tSource

onRed :: Pretty s t -> Pretty s tSource

onBlue :: Pretty s t -> Pretty s tSource

onCyan :: Pretty s t -> Pretty s tSource

bold :: Pretty s t -> Pretty s tSource

deBold :: Pretty s t -> Pretty s tSource

width :: Pretty s t -> (Int -> Pretty s t) -> Pretty s tSource

fill :: Printable s t => Int -> Pretty s t -> Pretty s tSource

fillBreak :: Printable s t => Int -> Pretty s t -> Pretty s tSource

fillCat :: Printable s t => [Pretty s t] -> Pretty s tSource

fillSep :: Printable s t => [Pretty s t] -> Pretty s tSource

(<>) :: Pretty s t -> Pretty s t -> Pretty s tSource

(<+>) :: Printable s t => Pretty s t -> Pretty s t -> Pretty s tSource

(<$$>) :: Pretty s t -> Pretty s t -> Pretty s tSource

(<//>) :: Printable s t => Pretty s t -> Pretty s t -> Pretty s tSource

(<$>) :: Pretty s t -> Pretty s t -> Pretty s tSource

(</>) :: Printable s t => Pretty s t -> Pretty s t -> Pretty s tSource

beside :: Pretty s t -> Pretty s t -> Pretty s tSource

cat :: Printable s t => [Pretty s t] -> Pretty s tSource

column :: (Int -> Pretty s t) -> Pretty s tSource

fold :: (Pretty s t -> Pretty s t -> Pretty s t) -> [Pretty s t] -> Pretty s tSource

group :: Printable s t => Pretty s t -> Pretty s tSource

hcat :: Printable s t => [Pretty s t] -> Pretty s tSource

hsep :: Printable s t => [Pretty s t] -> Pretty s tSource

nest :: Int -> Pretty s t -> Pretty s tSource

nesting :: (Int -> Pretty s t) -> Pretty s tSource

punctuate :: Pretty s t -> [Pretty s t] -> [Pretty s t]Source

sep :: Printable s t => [Pretty s t] -> Pretty s tSource

vcat :: [Pretty s t] -> Pretty s tSource

vsep :: [Pretty s t] -> Pretty s tSource

char :: Printable s t => t -> Pretty s tSource

flatten :: Printable s t => Pretty s t -> Pretty s tSource

text :: Printable s t => s -> Pretty s tSource

angles :: Printable s t => Pretty s t -> Pretty s tSource

braces :: Printable s t => Pretty s t -> Pretty s tSource

brackets :: Printable s t => Pretty s t -> Pretty s tSource

enclose :: Printable s t => Pretty s t -> Pretty s t -> Pretty s t -> Pretty s tSource

parens :: Printable s t => Pretty s t -> Pretty s tSource

spaces :: Printable s t => Int -> Pretty s tSource

dot :: Printable s t => Pretty s tSource

hPutSimplePretty :: forall s t. Printable s t => Handle -> SimplePretty s t -> IO ()Source

data Pretties s t Source

Constructors

Nil 
Cons !Int (Pretty s t) (Pretties s t) 

renderSimplePretty :: forall s t. Printable s t => SimplePretty s t -> sSource

renderSeq :: Printable s t => Pretty s t -> sSource

newtype Tok s t Source

Constructors

Tok 

Fields

unTok :: t
 

newtype Seq s t Source

Constructors

Seq 

Fields

unSeq :: s