hscolour-1.17: Colourise Haskell code.

Language.Haskell.HsColour.ANSI

Description

Partially taken from Hugs AnsiScreen.hs library:

Synopsis

Documentation

highlight :: [Highlight] -> String -> StringSource

Make the given string appear with all of the listed highlights

cls :: StringSource

Clear the screen.

goto :: Int -> Int -> StringSource

Move the screen cursor to the given position.

data Highlight Source

Types of highlighting supported by ANSI codes (and some extra styles).

data Colour Source

Colours supported by ANSI codes.

Constructors

Black 
Red 
Green 
Yellow 
Blue 
Magenta 
Cyan 
White 

colourCycle :: [Colour]Source

An infinite supply of colours.