edits-0.1.1.0: show the differences between 2 pieces of Text using the Levenshtein distance
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Text.Color

Description

This module can color some Text to be displayed in a terminal

Synopsis

Documentation

data Color Source #

Available ASCII colors

Constructors

Black 
Red 
Green 
Yellow 
Blue 
Magenta 
Cyan 
White 

Instances

Instances details
Show Color Source # 
Instance details

Defined in Data.Text.Color

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

Eq Color Source # 
Instance details

Defined in Data.Text.Color

Methods

(==) :: Color -> Color -> Bool #

(/=) :: Color -> Color -> Bool #

colorAs :: Color -> Text -> Text Source #

Surround a piece of text with ASCII control characters to color it