Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 where Source
Typeclass for all printers that support colourized output.
ebracket :: Colour -> m a -> m a Source
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 (AtomStoreT m) | |
ChExtendedPrinter m0 => ChExtendedPrinter (CounterT m) | |
ChExtendedPrinter m0 => ChExtendedPrinter (InRedirT m) | |
ChExtendedPrinter m0 => ChExtendedPrinter (QuietT m) | |
ChExtendedPrinter m0 => ChExtendedPrinter (HereStringT m) | |
ChExtendedPrinter m0 => ChExtendedPrinter (ScannerBufferT m) | |
ChExtendedPrinter m0 => ChExtendedPrinter (SpawnOverlayT m) | |
ChExtendedPrinter m0 => ChExtendedPrinter (NullFsT m) | |
ChExtendedPrinter m0 => ChExtendedPrinter (NullExpanderT m) | |
ChExtendedPrinter m0 => ChExtendedPrinter (HistoryT m) | |
ChPrinter m => ChExtendedPrinter (HtmlPrinterT m) | |
ChPrinter m => ChExtendedPrinter (AnsiPrinterT m) |
expandClr :: ChExtendedPrinter m => String -> m () Source