Safe Haskell | Safe-Inferred |
---|
Provides an extended printer class that supports colours.
- class MonadPrinter m => ExtendedPrinter m where
- data Tone
- data Colour
- expandClr :: ExtendedPrinter m => String -> m ()
Documentation
class MonadPrinter m => ExtendedPrinter 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.
ExtendedPrinter m0 => ExtendedPrinter (InRedirT m0) | |
ExtendedPrinter m0 => ExtendedPrinter (QuietT m0) | |
ExtendedPrinter m0 => ExtendedPrinter (HereStringT m0) | |
ExtendedPrinter m0 => ExtendedPrinter (SpawnOverlayT m0) | |
ExtendedPrinter m0 => ExtendedPrinter (NullExpanderT m0) | |
ExtendedPrinter m0 => ExtendedPrinter (HistoryT m0) | |
MonadPrinter m => ExtendedPrinter (HtmlPrinterT m) | |
MonadPrinter m => ExtendedPrinter (AnsiPrinterT m) |
expandClr :: ExtendedPrinter m => String -> m ()Source