hledger-lib-1.3.2: Core data types, parsers and functionality for the hledger accounting tools

Safe HaskellSafe
LanguageHaskell2010

Hledger.Utils.Color

Description

Basic color helpers for prettifying console output.

Synopsis

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.

data Color :: * #

ANSI colors: come in various intensities, which are controlled by ColorIntensity

Constructors

Black 
Red 
Green 
Yellow 
Blue 
Magenta 
Cyan 
White 

data ColorIntensity :: * #

ANSI colors come in two intensities

Constructors

Dull 
Vivid 

Instances

Bounded ColorIntensity 
Enum ColorIntensity 
Eq ColorIntensity 
Ord ColorIntensity 
Read ColorIntensity 
Show ColorIntensity 
Ix ColorIntensity