Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Synopsis
-
data
SetStyle
=
SetStyle
{
- ansiReset :: Bool
- ansiForeground :: Maybe ( ColorIntensity , Color )
- ansiBackground :: Maybe ( ColorIntensity , Color )
- ansiConsoleIntensity :: Maybe ConsoleIntensity
- ansiItalics :: Maybe Italicized
- ansiUnderlining :: Maybe Underlining
- data ColorIntensity
-
data
Layer
- = Foreground
- | Background
- data ConsoleIntensity
- data Underlining
-
data
Italicized
- = Italicized
- | NoItalics
- data Color
- color :: Color -> SetStyle
- bgColor :: Color -> SetStyle
- colorDull :: Color -> SetStyle
- bgColorDull :: Color -> SetStyle
- bold :: SetStyle
- underlined :: SetStyle
- italicized :: SetStyle
- styleToRawText :: SetStyle -> String
- defaultStyle :: SetStyle
Documentation
SetStyle | |
|
Instances
Eq SetStyle Source # | |
Ord SetStyle Source # | |
Defined in Options.Applicative.Help.Style |
|
Show SetStyle Source # | |
Semigroup SetStyle Source # | |
Monoid SetStyle Source # | |
data ColorIntensity Source #
ANSI's standard colors come in two intensities
Instances
data ConsoleIntensity Source #
ANSI general console intensity: usually treated as setting the font style
(e.g.
BoldIntensity
causes text to be bold)
BoldIntensity | |
FaintIntensity |
Not widely supported: sometimes treated as concealing text. Not supported natively on Windows 10 |
NormalIntensity |
Instances
data Underlining Source #
ANSI text underlining
SingleUnderline | |
DoubleUnderline |
Not widely supported. Not supported natively on Windows 10 |
NoUnderline |
Instances
data Italicized Source #
Instances
Eq Italicized Source # | |
Defined in Options.Applicative.Help.Style (==) :: Italicized -> Italicized -> Bool Source # (/=) :: Italicized -> Italicized -> Bool Source # |
|
Ord Italicized Source # | |
Defined in Options.Applicative.Help.Style compare :: Italicized -> Italicized -> Ordering Source # (<) :: Italicized -> Italicized -> Bool Source # (<=) :: Italicized -> Italicized -> Bool Source # (>) :: Italicized -> Italicized -> Bool Source # (>=) :: Italicized -> Italicized -> Bool Source # max :: Italicized -> Italicized -> Italicized Source # min :: Italicized -> Italicized -> Italicized Source # |
|
Show Italicized Source # | |
Defined in Options.Applicative.Help.Style |
bgColorDull :: Color -> SetStyle Source #
Style the background with a dull color.
underlined :: SetStyle Source #
Render underlined.
italicized :: SetStyle Source #
Render in italics .
styleToRawText :: SetStyle -> String Source #