summoner-1.2.0: Tool for scaffolding completely configured production Haskell projects.

Safe HaskellNone
LanguageHaskell2010

Summoner.Ansi

Description

This module contains functions for colorful printing into terminal.

Synopsis

Documentation

data Color #

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

Constructors

Black 
Red 
Green 
Yellow 
Blue 
Magenta 
Cyan 
White 
Instances
Bounded Color 
Instance details

Defined in System.Console.ANSI.Types

Enum Color 
Instance details

Defined in System.Console.ANSI.Types

Eq Color 
Instance details

Defined in System.Console.ANSI.Types

Methods

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

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

Ord Color 
Instance details

Defined in System.Console.ANSI.Types

Methods

compare :: Color -> Color -> Ordering #

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

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

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

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

max :: Color -> Color -> Color #

min :: Color -> Color -> Color #

Read Color 
Instance details

Defined in System.Console.ANSI.Types

Show Color 
Instance details

Defined in System.Console.ANSI.Types

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

Ix Color 
Instance details

Defined in System.Console.ANSI.Types

putStrFlush :: Text -> IO () Source #

Explicit flush ensures prompt messages are in the correct order on all systems.

beautyPrint :: [IO ()] -> Text -> IO () Source #

Takes list of formatting options, prints text using this format options.

bold :: IO () Source #

Starts bold printing.

reset :: IO () Source #

Resets all previous settings.