HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Moduleshower-0.2.0.5Haskell2010

Shower.Class

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

Synopsis
  • 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