The data-pprint package

[ Tags: bsd3, library, testing, text ] [ Propose Tags ]

Prettyprint and compare Data values.

Probably you need only the pprint and '(===)' functions from the Data.PPrint module.

Usage examples:

pprint [1..]
pprint $ repeat [1..]
pprint $ iterate (*10) 1
pprint $ map length $ replicate 5 [1..] ++ repeat []
pprint [2 `div` 0, error "xxx", 18, 4 `div` 0]
[1..10] === reverse [10,9..1]
[1..10] === reverse [10..1]
reverse [10..] === [1..]
[1..] === [1..99] ++ [101..]
([1..], [1..]) === ([1..], [1..100])
(error "x", [1..]) === (0 `div` 0, reverse [1..])
error ("xx" ++ show (length [1..])) === 1
error ("xx" ++ error "yy") === 1
(error $ unlines $ replicate 300 "xxxxxxxxxxxxxxxxxxxxxxxxxxx") === 1
pprint ['a'..]
pprint $ "hello" ++ [error "x"] ++ "world!"

See also http://pnyf.inf.elte.hu/fp/Show_en.xml

Changes since 0.1: Refactoring, proper handling of nested errors

Properties

Versions 0.1, 0.2, 0.2.1.3, 0.2.1.4, 0.2.1.5, 0.2.2, 0.2.3, 0.2.4, 0.2.4.1
Dependencies base (>=4.0 && <4.4), deepseq (==1.1.*), mtl (==2.0.*), parallel (==3.1.*), pretty (==1.0.*), time (==1.2.*) [details]
License BSD3
Author Péter Diviánszky
Maintainer divip@aszt.inf.elte.hu
Category Testing, Text
Uploaded Sun May 8 05:07:25 UTC 2011 by PeterDivianszky
Distributions Debian:0.2.3, FreeBSD:0.2.4, NixOS:0.2.4.1
Downloads 3216 total (52 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees