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

Iris.Cli.Colour

Description

CLI parser for the --colour and --no-colour options.

Since: 0.1.0.0

Synopsis

Documentation

data ColourOption Source #

Data type that tells whether the user wants the colouring option enabled, disabled or autodetected.

See colourOptionP for the parser of this option.

Since: 0.1.0.0

Constructors

Always

Since: 0.1.0.0

Never

Since: 0.1.0.0

Auto

Since: 0.1.0.0

colourOptionP :: Parser ColourOption Source #

A CLI option parser for the desired coloured output mode in the terminal.

It parses --colour and --no-colour flags explicitly. Otherwise, it defaults to Auto.

Since: 0.1.0.0