buildbox-1.2.1.0: Rehackable components for writing buildbots and test harnesses.

BuildBox.Pretty

Description

Pretty printing utils.

Synopsis

Documentation

pprPSecTime :: Integer -> DocSource

Print a number of picoseconds as a time.

pprFloatTime :: Float -> DocSource

Print a float number of seconds as a time.

pprFloatSR :: Float -> DocSource

Print a float number of seconds, rounding it and, prefixing with + or - appropriately.

pprFloatRef :: Float -> Float -> DocSource

Pretty print a signed float, with a percentage change relative to a reference figure. Comes out like 0.235( +5) for a +5 percent swing.

padRc :: Int -> Char -> Doc -> DocSource

Right justify a doc, padding with a given character.

padR :: Int -> Doc -> DocSource

Right justify a string with spaces.

padLc :: Int -> Char -> Doc -> DocSource

Left justify a string, padding with a given character.

padL :: Int -> Doc -> DocSource

Left justify a string with spaces.

blank :: DocSource

Blank text. This is different different from empty because it comes out a a newline when used in a vcat.