Skip to content

Commit

Permalink
Update Haddock documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Feb 7, 2024
1 parent c70e339 commit 9ec48d8
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions ansi-terminal-types/src/System/Console/ANSI/Types.hs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{-# LANGUAGE Safe #-}

{-| The \'ANSI\' standards refer to the visual style of displaying characters as
their \'graphic rendition\'. The style includes the color of a character or its
background, the intensity (bold, normal or faint) of a character, or whether the
character is italic or underlined (single or double), blinking (slowly or
rapidly) or visible or not. The \'ANSI\' codes to establish the graphic
rendition for subsequent text are referred to as SELECT GRAPHIC RENDITION (SGR).
their \'graphic rendition\'. The style includes the color of a character, its
background, or (where supported) its underlining; the intensity (bold, normal or
faint) of a character; or whether the character is italic or underlined (single,
double, curly, dotted or dashed), blinking (slowly or rapidly) or visible or
not. The \'ANSI\' codes to establish the graphic rendition for subsequent text
are referred to as SELECT GRAPHIC RENDITION (SGR).
This module exports types and functions used to represent SGR aspects. See also
'System.Console.ANSI.setSGR' and related functions provided by the
Expand Down Expand Up @@ -54,12 +55,14 @@ data ColorIntensity
| Vivid
deriving (Bounded, Eq, Enum, Ix, Ord, Read, Show)

-- | ANSI colors can be set on two different layers
-- | ANSI colors can be set on three different layers
data ConsoleLayer
= Foreground
| Background
| Underlining
-- ^ Not widely supported.
--
-- @since 1.1
deriving (Bounded, Eq, Enum, Ix, Ord, Read, Show)

-- | ANSI blink speeds: values other than 'NoBlink' are not widely supported
Expand All @@ -76,10 +79,16 @@ data Underlining
-- ^ Not widely supported.
| CurlyUnderline
-- ^ Not widely supported.
--
-- @since 1.1
| DottedUnderline
-- ^ Not widely supported.
--
-- @since 1.1
| DashedUnderline
-- ^ Not widely supported.
--
-- @since 1.1
| NoUnderline
deriving (Bounded, Eq, Enum, Ix, Ord, Read, Show)

Expand Down

0 comments on commit 9ec48d8

Please sign in to comment.