Pretty printing utils.
Documentation
module Text.PrettyPrint
Pretty Float | |
Pretty Int | |
Pretty Integer | |
Pretty String | |
Pretty Doc | |
Pretty UTCTime | |
Pretty BuildError | |
Pretty Platform | |
Pretty Environment | |
Pretty BenchResult | |
Pretty BenchRunResult | |
Pretty TimeAspect | Get the pretty name of a TimeAspect. |
pprPSecTime :: Integer -> DocSource
Print a number of picoseconds as a time.
pprFloatTime :: Float -> DocSource
Print a float number of seconds as a time.
pprFloatSF :: Float -> DocSource
Print a float number of seconds, flooring 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.