-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Colorization of text for command-line output -- -- Paint is a small module that implements the essential subset of the -- ANSI terminal codes that provide various text styling features, such -- as underlining, blinking or different foreground and background -- coloring. @package paint @version 1.0.0 module Text.Paint -- | Foreground and background color. data Color -- | black Black :: Color -- | red Red :: Color -- | green Green :: Color -- | yellow Yellow :: Color -- | blue Blue :: Color -- | magenta Magenta :: Color -- | cyan Cyan :: Color -- | light gray LightGray :: Color -- | dark gray DarkGray :: Color -- | light red LightRed :: Color -- | light green LightGreen :: Color -- | light yellow LightYellow :: Color -- | light blue LightBlue :: Color -- | light magenta LightMagenta :: Color -- | light cyan LightCyan :: Color -- | white White :: Color -- | default setting Default :: Color -- | Various flags applicable to the text. data Flag -- | bold text (sometimes lighter) Bold :: Flag -- | underlined text Underline :: Flag -- | blinking (<150 BPM) Blink :: Flag -- | Coloring scheme containing foreground and background layers, and a -- setting for text styling. data Paint Paint :: Color -> Color -> [Flag] -> Paint -- | Apply a color scheme to a text instance. paint :: Paint -> Text -> Text instance GHC.Show.Show Text.Paint.Flag instance GHC.Classes.Ord Text.Paint.Flag instance GHC.Classes.Eq Text.Paint.Flag instance GHC.Show.Show Text.Paint.Color instance GHC.Enum.Enum Text.Paint.Color instance GHC.Classes.Ord Text.Paint.Color instance GHC.Classes.Eq Text.Paint.Color