Safe Haskell | Safe-Inferred |
---|
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 | |
ChChannelPrinter Bool m0 => ChChannelPrinter Bool (AnsiPrinterT m0) | |
ChChannelPrinter Int m0 => ChChannelPrinter Int (AnsiPrinterT m0) | |
ChChannelPrinter Handle m0 => ChChannelPrinter Handle (AnsiPrinterT m0) | |
Monad m => Monad (AnsiPrinterT m) | |
Monad m => Functor (AnsiPrinterT m) | |
MonadIO m => MonadIO (AnsiPrinterT m) | |
ChRandom m0 => ChRandom (AnsiPrinterT m0) | |
ChClock m0 => ChClock (AnsiPrinterT m0) | |
ChFinalizer m0 => ChFinalizer (AnsiPrinterT m0) | |
ChScanner m0 => ChScanner (AnsiPrinterT m0) | |
ChBufferedScanner m0 => ChBufferedScanner (AnsiPrinterT m0) | |
ChPrinter m => ChPrinter (AnsiPrinterT m) | |
ChSpawn m0 => ChSpawn (AnsiPrinterT m0) | |
ChPrinter m => ChExtendedPrinter (AnsiPrinterT m) | |
(Functor m, ChExpand m) => ChExpand (AnsiPrinterT m) | |
ChExpanderEnv m0 => ChExpanderEnv (AnsiPrinterT m0) | |
ChHistoryEnv m0 => ChHistoryEnv (AnsiPrinterT m0) |
mkColourInt :: Colour -> ColorIntensitySource
Convert Chatty's colour intensity to ansi-terminal's one
mkColourCode :: Colour -> ColorSource
Convert Chatty's colour tone to ansi-terminal's one