PprColour

ghc-8.4.4: The GHC API

Safe Haskell | None
Language | Haskell2010

PprColour

Synopsis

- newtype PprColour = PprColour {
  - renderColour :: String
  }
- renderColourAfresh :: PprColour -> String
- colCustom :: String -> PprColour
- colReset :: PprColour
- colBold :: PprColour
- colBlackFg :: PprColour
- colRedFg :: PprColour
- colGreenFg :: PprColour
- colYellowFg :: PprColour
- colBlueFg :: PprColour
- colMagentaFg :: PprColour
- colCyanFg :: PprColour
- colWhiteFg :: PprColour
- data Scheme = Scheme {
  - sHeader :: PprColour
  - sMessage :: PprColour
  - sWarning :: PprColour
  - sError :: PprColour
  - sFatal :: PprColour
  - sMargin :: PprColour
  }
- defaultScheme :: Scheme
- parseScheme :: String -> (OverridingBool, Scheme) -> (OverridingBool, Scheme)

# Documentation

newtype PprColour #

A colour/style for use with `coloured`.

Constructors

PprColour |
Fields renderColour :: String

Instances

Semigroup PprColour # |
Instance details Defined in PprColour Methods (<>) :: PprColour -> PprColour -> PprColour Source # sconcat :: NonEmpty PprColour -> PprColour Source # stimes :: Integral b => b -> PprColour -> PprColour Source #
Monoid PprColour # | Allow colours to be combined (e.g. bold + red); In case of conflict, right side takes precedence.
Instance details Defined in PprColour Methods mempty :: PprColour Source # mappend :: PprColour -> PprColour -> PprColour Source # mconcat :: [PprColour] -> PprColour Source #

renderColourAfresh :: PprColour -> String #

colCustom :: String -> PprColour #

colReset :: PprColour #

colBold :: PprColour #

colBlackFg :: PprColour #

colRedFg :: PprColour #

colGreenFg :: PprColour #

colYellowFg :: PprColour #

colBlueFg :: PprColour #

colMagentaFg :: PprColour #

colCyanFg :: PprColour #

colWhiteFg :: PprColour #

data Scheme #

Constructors

Scheme |
Fields sHeader :: PprColour sMessage :: PprColour sWarning :: PprColour sError :: PprColour sFatal :: PprColour sMargin :: PprColour

defaultScheme :: Scheme #

parseScheme :: String -> (OverridingBool, Scheme) -> (OverridingBool, Scheme) #

Parse the colour scheme from a string (presumably from the `GHC_COLORS` environment variable).