HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Moduleshower-0.2.0.5Haskell2010

Shower.Class

This module defines the representation of data that the parser produces and the pretty-printer consumes.

  • 2 types
  • 1 class
  • Packageshower-0.2.0.5
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceClass.hs
classclass Shower a where
#

A tagless final encoding for a result builder (ShowS, Doc, Html, etc).

Note that showerStringLit and showerCharLit take exact uninterpreted strings to avoid losing information (e.g. "\n" vs. "\10").

Methods

Instances1Shower
datadata ShowerComma a
#

Either a comma or an element.

For example, the tuple section (,a,,b) is represented like this:

[ ShowerCommaSep,
  ShowerCommaElement "a",
  ShowerCommaSep,
  ShowerCommaSep,
  ShowerCommaElement "b" ]

Constructors