Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module defines the Pretty
type class. The assert functions
from HUnitWrapper
use the pretty-printing functionality
provided by this type class so as to provide nicely formatted
error messages.
Additionally, this module re-exports the standard Haskell pretty-printing module
PrettyPrint
- class Pretty a where
- pretty :: a -> Doc
- prettyList :: [a] -> Doc
- showPretty :: a -> String
- (<=>) :: Doc -> Doc -> Doc
- module Text.PrettyPrint
Documentation
A type class for pretty-printable things.
Minimal complete definition: pretty
.
Pretty-print a single value.
prettyList :: [a] -> Doc Source
Pretty-print a list of things.
showPretty :: a -> String Source
Pretty-print a single value as a String
.
module Text.PrettyPrint