HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulepretty-1.1.3.6Haskell98

Text.PrettyPrint.HughesPJClass

Pretty printing class, simlar to Show but nicer looking.

Note that the precedence level is a Rational so there is an unlimited number of levels. This module re-exports Text.PrettyPrint.HughesPJ.

  • 1 type
  • 1 class
  • 3 values
  • Packagepretty-1.1.3.6
  • Exports5
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceHughesPJClass.hs

Pretty typeclass

5 declarations
classclass Pretty a where
#

Pretty printing class. The precedence level is used in a similar way as in the Show class. Minimal complete definition is either pPrintPrec or pPrint.

Methods

Instances18Pretty, …
newtypenewtype PrettyLevel
#

Level of detail in the pretty printed output. Level 0 is the least detail.

Constructors

Instances3Eq, Ord, Show
  • Eq PrettyLevelDefined in pretty-1.1.3.6 · Text.PrettyPrint.HughesPJClass
  • Ord PrettyLevelDefined in pretty-1.1.3.6 · Text.PrettyPrint.HughesPJClass
  • Show PrettyLevelDefined in pretty-1.1.3.6 · Text.PrettyPrint.HughesPJClass