Safe Haskell | Safe |
---|---|
Language | Haskell98 |
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
Documentation
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.
Functor PP Source # | |
Pretty (PP [DebSource]) # | |
Pretty (PP [ChangeLogEntry]) # | |
Pretty (PP a) => Pretty (PP (Maybe a)) Source # | |
Pretty (PP String) Source # | |
Pretty (PP Text) Source # | |
Pretty (PP ChangeLog) # | |
Pretty (PP ChangeLogEntry) # | |
Pretty (PP ChangedFileSpec) # | |
Pretty (PP ChangesFile) # | |
Pretty (PP VersionReq) # | |
Pretty (PP ArchitectureReq) # | |
Pretty (PP BinPkgName) # | |
Pretty (PP SrcPkgName) # | |
Pretty (PP Relation) # | |
Pretty (PP OrRelation) # | |
Pretty (PP Relations) # | Wrap |
prettyShow :: Pretty a => a -> String #
Pretty print a value with the prettyNormal
level.
prettyText :: Pretty a => a -> Text Source #