ansi-terminal 0.5.5.1 → 0.6
raw patch · 2 files changed
+9/−4 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- System/Console/ANSI/Common.hs +8/−3
- ansi-terminal.cabal +1/−1
System/Console/ANSI/Common.hs view
@@ -1,5 +1,6 @@ module System.Console.ANSI.Common where +import Data.Ix -- | ANSI colors: come in various intensities, which are controlled by 'ColorIntensity' data Color = Black@@ -10,32 +11,35 @@ | Magenta | Cyan | White- deriving (Bounded, Enum, Show)+ deriving (Eq, Ord, Bounded, Enum, Show, Read, Ix) -- | ANSI colors come in two intensities data ColorIntensity = Dull | Vivid- deriving (Enum, Show)+ deriving (Eq, Ord, Bounded, Enum, Show, Read, Ix) -- | ANSI colors can be set on two different layers data ConsoleLayer = Foreground | Background- deriving (Enum, Show)+ deriving (Eq, Ord, Bounded, Enum, Show, Read, Ix) -- | ANSI blink speeds: values other than 'NoBlink' are not widely supported data BlinkSpeed = SlowBlink -- ^ Less than 150 blinks per minute | RapidBlink -- ^ More than 150 blinks per minute | NoBlink+ deriving (Eq, Ord, Bounded, Enum, Show, Read, Ix) -- | ANSI text underlining data Underlining = SingleUnderline | DoubleUnderline -- ^ Not widely supported | NoUnderline+ deriving (Eq, Ord, Bounded ,Enum, Show, Read, Ix) -- | ANSI general console intensity: usually treated as setting the font style (e.g. 'BoldIntensity' causes text to be bold) data ConsoleIntensity = BoldIntensity | FaintIntensity -- ^ Not widely supported: sometimes treated as concealing text | NormalIntensity+ deriving (Eq, Ord, Bounded, Enum, Show, Read, Ix) -- | ANSI Select Graphic Rendition command data SGR = Reset@@ -46,3 +50,4 @@ | SetVisible Bool -- ^ Not widely supported | SetSwapForegroundBackground Bool | SetColor ConsoleLayer ColorIntensity Color+ deriving (Eq, Ord, Show, Read)
ansi-terminal.cabal view
@@ -1,5 +1,5 @@ Name: ansi-terminal-Version: 0.5.5.1+Version: 0.6 Cabal-Version: >= 1.2 Category: User Interfaces Synopsis: Simple ANSI terminal support, with Windows compatibility