iris-0.1.0.0: Haskell CLI framework
Copyright(c) 2022 Dmitrii Kovanikov
LicenseMPL-2.0
MaintainerDmitrii Kovanikov <kovanikov@gmail.com>
StabilityExperimental
PortabilityPortable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Iris.Colour.Formatting

Description

Helper functions to print with colouring.

Since: 0.0.0.0

Synopsis

Documentation

putStdoutColouredLn :: (MonadReader (CliEnv cmd appEnv) m, MonadIO m) => (Text -> Text) -> Text -> m () Source #

Print Text to stdout by providing a custom formatting function.

This works especially well with the colourista package:

putStdoutColouredLn
    (Colourista.formatWith [Colourista.bold, Colourista.green])
    "my message"

Since: 0.0.0.0

putStderrColouredLn :: (MonadReader (CliEnv cmd appEnv) m, MonadIO m) => (Text -> Text) -> Text -> m () Source #

Print Text to stderr by providing a custom formatting function.

This works especially well with the colourista package:

putStderrColouredLn
    (Colourista.formatWith [Colourista.bold, Colourista.green])
    "my message"

Since: 0.0.0.0

putStdoutColoured :: (MonadReader (CliEnv cmd appEnv) m, MonadIO m) => (Text -> Text) -> Text -> m () Source #

Print Text to stdout by providing a custom formatting function. Doesn't breaks output line that differs from putStdoutColouredLn

This works especially well with the colourista package:

putStdoutColoured
    (Colourista.formatWith [Colourista.bold, Colourista.green])
    "my message"

Since: 0.1.0.0

putStderrColoured :: (MonadReader (CliEnv cmd appEnv) m, MonadIO m) => (Text -> Text) -> Text -> m () Source #

Print Text to stderr by providing a custom formatting function. Doesn't breaks output line that differs from putStderrColouredLn

This works especially well with the colourista package:

putStderrColoured
    (Colourista.formatWith [Colourista.bold, Colourista.green])
    "my message"

Since: 0.1.0.0