darcs-2.18.5: a distributed, interactive, smart revision control system

Safe Haskell | None
Language | Haskell2010

Darcs.Util.Printer.Color

Synopsis

- unsafeRenderStringColored :: Doc -> String
- traceDoc :: Doc -> a -> a
- fancyPrinters :: Printers
- environmentHelpColor :: ([String], [String])
- environmentHelpEscape :: ([String], [String])
- environmentHelpEscapeWhite :: ([String], [String])
- ePutDocLn :: Doc -> IO ()

# Documentation

unsafeRenderStringColored :: Doc -> String #

traceDoc :: Doc -> a -> a #

fancyPrinters :: Printers #

``fancyPrinters` h` returns a set of printers suitable for outputting to `h`

environmentHelpColor :: ([String], [String]) #

environmentHelpEscape :: ([String], [String]) #

environmentHelpEscapeWhite :: ([String], [String]) #

ePutDocLn :: Doc -> IO () #

`eputDocLn` puts a `Doc`, followed by a newline to stderr using `fancyPrinters`. Like putDocLn, it encodes with the user's locale. This function is the recommended way to output messages that should be visible to users on the console, but cannot (or should not) be silenced even when --quiet is in effect.