colourista-0.0.0.0: Convenient interface for printing colourful messages

Copyright(c) 2020 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Colourista.IO

Contents

Description

Functions to output formatted Text directly to terminal.

Synopsis

Color

Direct

redMessage :: Text -> IO () Source #

Print Text coloured in red.

greenMessage :: Text -> IO () Source #

Print Text coloured in green.

blueMessage :: Text -> IO () Source #

Print Text coloured in blue.

yellowMessage :: Text -> IO () Source #

Print Text coloured in yellow.

blackMessage :: Text -> IO () Source #

Print Text coloured in black.

whiteMessage :: Text -> IO () Source #

Print Text coloured in white.

magentaMessage :: Text -> IO () Source #

Print Text coloured in magenta.

cyanMessage :: Text -> IO () Source #

Print Text coloured in cyan.

Aliases

successMessage :: Text -> IO () Source #

Alias for greenMessage that specifies message severity.

infoMessage :: Text -> IO () Source #

Alias for blueMessage that specifies message severity.

skipMessage :: Text -> IO () Source #

Alias for cyanMessage that specifies message severity.

warningMessage :: Text -> IO () Source #

Alias for yellowMessage that specifies message severity.

errorMessage :: Text -> IO () Source #

Alias for redMessage that specifies message severity.

Emphasis

boldMessage :: Text -> IO () Source #

Print Text emphasized with bold.

italicMessage :: Text -> IO () Source #

Print Text emphasized with italic.

General purpose

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

Print message with specified list of formatting options. See formatWith for more details. If this function takes empty list, no formatting is applied.