Safe Haskell | Safe-Inferred |
---|
Provides an extended printer class that supports colours.
- class ChPrinter m => ChExtendedPrinter m where
- data Tone
- data Colour
- expandClr :: ChExtendedPrinter m => String -> m ()
Documentation
class ChPrinter m => ChExtendedPrinter m whereSource
Typeclass for all printers that support colourized output.
ebracket :: Colour -> m a -> m aSource
Run the function with the given colour.
eprint :: Colour -> String -> m ()Source
Print the string in the given colour.
eprintLn :: Colour -> String -> m ()Source
Print the string in the given colour and terminate the line.
enomask :: Colour -> String -> m ()Source
Print the string in the given colour without masking.
enomaskLn :: Colour -> String -> m ()Source
Print the string in the given colour without masking and terminate the line.
estart :: Colour -> m ()Source
Start using the specified colour.
Reset colour.
ChExtendedPrinter m0 => ChExtendedPrinter (InRedirT m0) | |
ChExtendedPrinter m0 => ChExtendedPrinter (QuietT m0) | |
ChExtendedPrinter m0 => ChExtendedPrinter (HereStringT m0) | |
ChExtendedPrinter m0 => ChExtendedPrinter (ScannerBufferT m0) | |
ChExtendedPrinter m0 => ChExtendedPrinter (SpawnOverlayT m0) | |
ChExtendedPrinter m0 => ChExtendedPrinter (NullExpanderT m0) | |
ChExtendedPrinter m0 => ChExtendedPrinter (HistoryT m0) | |
ChPrinter m => ChExtendedPrinter (HtmlPrinterT m) | |
ChPrinter m => ChExtendedPrinter (AnsiPrinterT m) |
expandClr :: ChExtendedPrinter m => String -> m ()Source