Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Provides a ChExtendedPrinter
that handles colours using standardized ANSI codes.
- newtype AnsiPrinterT m a = AnsiPrinter {
- runAnsiPrinterT :: [Colour] -> m (a, [Colour])
- mkColourInt :: Colour -> ColorIntensity
- mkColourCode :: Colour -> Color
Documentation
newtype AnsiPrinterT m a Source #
A ChExtendedPrinter
that uses ANSI colour codes.
AnsiPrinter | |
|
MonadTrans AnsiPrinterT Source # | |
Monad m => Monad (AnsiPrinterT m) Source # | |
Monad m => Functor (AnsiPrinterT m) Source # | |
Monad m => Applicative (AnsiPrinterT m) Source # | |
MonadIO m => MonadIO (AnsiPrinterT m) Source # | |
ChPrinter m => ChPrinter (AnsiPrinterT m) Source # | |
ChPrinter m => ChExtendedPrinter (AnsiPrinterT m) Source # | |
(Functor m, ChExpand m) => ChExpand (AnsiPrinterT m) Source # | |
mkColourInt :: Colour -> ColorIntensity Source #
Convert Chatty's colour intensity to ansi-terminal's one
mkColourCode :: Colour -> Color Source #
Convert Chatty's colour tone to ansi-terminal's one