data-pprint-0.2.4.2: Prettyprint and compare Data values
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.PPrint

Description

Prettyprint and compare Data values.

Synopsis

Documentation

pprint :: Data a => a -> IO Doc Source #

Prettyprint a Data value.

There is a 1 second time limit and the output contains at most approximately 500 characters.

The exceptions are shown as bottom signs followed by explanations.

pprintTo :: Data a => Int -> a -> IO Doc Source #

Prettyprint a Data value, showing up to approximately the specified number of characters. Use this to show more than the default pprint allows.

(===) :: Data a => a -> a -> IO Doc infix 0 Source #

Compare two Data values.

The can be yes, no or maybe. The differences are highlighted.

There is a 1 second time limit and the output contains at most approximately 500 characters.

The exceptions are shown as bottom signs followed by explanations.