-- 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 2.0.0 module Text.Paint -- | Foreground and background color. data Color -- | black Black :: Color -- | maroon Maroon :: Color -- | green Green :: Color -- | olive Olive :: Color -- | navy Navy :: Color -- | purple Purple :: Color -- | teal Teal :: Color -- | silver Silver :: Color -- | gray Gray :: Color -- | red Red :: Color -- | lime Lime :: Color -- | yellow Yellow :: Color -- | blue Blue :: Color -- | fuchsia Fuchsia :: Color -- | aqua Aqua :: Color -- | white White :: Color -- | default 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 -> String -> String instance GHC.Show.Show Text.Paint.Paint instance GHC.Classes.Ord Text.Paint.Paint instance GHC.Classes.Eq Text.Paint.Paint 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