debian-4.0.5: Modules for working with the Debian package system
Safe HaskellSafe-Inferred
LanguageHaskell2010

Debian.Pretty

Contents

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

Instances

Instances details
Functor PP Source # 
Instance details

Defined in Debian.Pretty

Methods

fmap :: (a -> b) -> PP a -> PP b #

(<$) :: a -> PP b -> PP a #

Pretty (PP ChangeLog) Source # 
Instance details

Defined in Debian.Changes

Pretty (PP ChangeLogEntry) Source # 
Instance details

Defined in Debian.Changes

Pretty (PP ChangedFileSpec) Source # 
Instance details

Defined in Debian.Changes

Pretty (PP ChangesFile) Source # 
Instance details

Defined in Debian.Changes

Pretty (PP ArchitectureReq) Source # 
Instance details

Defined in Debian.Relation.Common

Pretty (PP BinPkgName) Source # 
Instance details

Defined in Debian.Relation.Common

Pretty (PP OrRelation) Source # 
Instance details

Defined in Debian.Relation.Common

Pretty (PP Relation) Source # 
Instance details

Defined in Debian.Relation.Common

Pretty (PP Relations) Source #

Wrap PP around type synonyms that might overlap with the `Pretty [a]` instance.

Instance details

Defined in Debian.Relation.Common

Pretty (PP SrcPkgName) Source # 
Instance details

Defined in Debian.Relation.Common

Pretty (PP VersionReq) Source # 
Instance details

Defined in Debian.Relation.Common

Pretty (PP DebianVersion) Source # 
Instance details

Defined in Debian.Version.Common

Pretty (PP Text) Source # 
Instance details

Defined in Debian.Pretty

Pretty (PP String) Source # 
Instance details

Defined in Debian.Pretty

Pretty (PP a) => Pretty (PP (Maybe a)) Source # 
Instance details

Defined in Debian.Pretty

Pretty (PP [ChangeLogEntry]) Source # 
Instance details

Defined in Debian.Changes

Pretty (PP [DebSource]) Source # 
Instance details

Defined in Debian.Sources

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

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

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

Re-export

prettyShow :: Pretty a => a -> String #