HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulehscolour-1.25Haskell98

Language.Haskell.HsColour.ColourHighlight

  • 2 types
  • 5 values
  • Packagehscolour-1.25
  • Exports7
  • LanguageHaskell98
  • LicenceLicenseRef-LGPL
  • SourceColourHighlight.hs
datadata Highlight
#

Types of highlighting supported by ANSI codes (and some extra styles).

Instances4Enum, Eq, Read, Show
  • Enum HighlightDefined in hscolour-1.25 · Language.Haskell.HsColour.ANSI · orphan
  • Eq HighlightDefined in hscolour-1.25 · Language.Haskell.HsColour.ColourHighlight
  • Read HighlightDefined in hscolour-1.25 · Language.Haskell.HsColour.ColourHighlight
  • Show HighlightDefined in hscolour-1.25 · Language.Haskell.HsColour.ColourHighlight
valuebase256 :: Integral int => (Word8 -> Word8 -> Word8 -> r) -> int -> r
#

Convert an integer in the range [0,2^24-1] to its base 256-triplet, passing the result to the given continuation (avoid unnecessary tupleism).

valueunbase :: Integral int => int -> Word8 -> Word8 -> Word8 -> int
#

Convert a three-digit numeral in the given (as arg 1) base to its integer value.

Ap"proxi"mate a 24-bit Rgb colour with an ANSI8 colour. Will leave other colours unchanged and will never return an Rgb constructor value.