summoner-1.3.0.1: Tool for scaffolding fully configured batteries-included production-level Haskell projects.

Safe HaskellNone
LanguageHaskell2010

Summoner.Ansi

Description

This module contains functions for colorful printing into terminal.

Synopsis

Documentation

data Color #

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.