HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulesafe-coloured-text-0.6.0.0Haskell2010

Text.Colour

Safe Coloured Text

This module is responsible for defining, building, and rendering coloured text.

The text to be coloured is Text, but the rendered text, while technically still (probably) valid Utf8, will be a ByteString builder.

Contents
  1. Building chunks
  2. Styling
  3. Setting colour
  4. Setting non-colour attributes
  5. Colours
  6. 8-colour
  7. Dull
  8. Bright
  9. 8-bit
  10. 24-bit
  11. Rendering
  12. Composing chunks
  13. Rendering chunks to strict bytestring in UTF8
  14. Rendering chunks to lazy bytestring builders in UTF8
  15. Rendering chunks to strict Text
  16. Rendering chunks to lazy text
  17. Rendering chunks to lazy text builder
  18. IO
  19. Outputting chunks directly
Synopsis

Building chunks

datadata Chunk
#
Instances6Eq, Show, IsString, Generic, Validity, Rep
datadata ChunkStyle
#
Instances5Eq, Show, Generic, Validity, Rep

Styling

Setting colour

Setting non-colour attributes

Colours

datadata Colour
#
Instances5Eq, Show, Generic, Validity, Rep

8-colour

Dull

Bright

8-bit

24-bit

Rendering

Composing chunks

Rendering chunks to strict bytestring in UTF8

Rendering chunks to lazy bytestring builders in UTF8

Rendering chunks to strict Text

Rendering chunks to lazy text

Rendering chunks to lazy text builder

IO

datadata TerminalCapabilities
#

Constructors

Instances5Eq, Ord, Show, Generic, Rep

Outputting chunks directly