BuildBox.Pretty
Description
Pretty printing utils.
Documentation
module Text.PrettyPrint
Instances
| Pretty Float | |
| Pretty Int | |
| Pretty Integer | |
| Pretty String | |
| Pretty Doc | |
| Pretty UTCTime | |
| Pretty BuildError | |
| Pretty BenchResult | |
| Pretty BenchRunResult | |
| Pretty TimeAspect | Get the pretty name of a TimeAspect. |
| Pretty Platform | |
| Pretty Environment | |
| Pretty BuildResults |
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.