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

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

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.

Contents
  1. Pretty typeclass
Synopsis
  • Packagepretty-1.1.3.6
  • Exports5
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceHughesPJClass.hs

Pretty typeclass

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