debian-3.87.2: Modules for working with the Debian package system

Safe HaskellSafe-Inferred
LanguageHaskell98

Debian.Pretty

Description

A constructor we can wrap around values to avoid any built in Pretty instance - for example, instance Pretty [a].

  • display is now prettyShow
  • display' is now prettyText
  • ppDisplay is now ppShow
  • ppDisplay' is now ppText

Synopsis

Documentation

newtype PP a Source

This type is wrapped around values before we pretty print them so we can write our own Pretty instances for common types without polluting the name space of clients of this package with instances they don't want.

Constructors

PP 

Fields

unPP :: a
 

prettyShow :: Pretty a => a -> String

Pretty print a value with the prettyNormal level.

ppPrint :: Pretty (PP a) => a -> Doc Source

ppShow :: Pretty (PP a) => a -> String Source

ppText :: Pretty (PP a) => a -> Text Source