Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Provides an extended printer class that supports colours.
Synopsis
- 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.
Instances
expandClr :: ChExtendedPrinter m => String -> m () Source #