| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Hledger.Utils.Color
Description
Basic color helpers for prettifying console output.
Documentation
color :: ColorIntensity -> Color -> String -> String Source #
Wrap a string in ANSI codes to set and reset foreground colour.
bgColor :: ColorIntensity -> Color -> String -> String Source #
Wrap a string in ANSI codes to set and reset background colour.
Instances
| Bounded Color | |
Defined in System.Console.ANSI.Types | |
| Enum Color | |
| Eq Color | |
| Ord Color | |
| Read Color | |
Defined in System.Console.ANSI.Types | |
| Show Color | |
| Ix Color | |
data ColorIntensity #