HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

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