data-pprint: Prettyprint and compare Data values
Prettyprint and compare Data values.
Size limit for the output
Time limit for the computation
Escape exceptions
Do not escape unicode characters
Comparison: Highlight the first difference
Comparison: Yes, No or Maybe results
Probably you need only the pprint
and (===)
functions from the Data.PPrint module.
Usage examples:
pprint [1..] pprintTo 10000 $ 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
Modules
[Index]
Downloads
- data-pprint-0.2.4.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 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, 0.2.4.2 |
---|---|
Dependencies | base (>=4.0 && <4.11), deepseq (>=1.1 && <1.5), mtl (>=2.0 && <2.3), parallel (>=3.1 && <3.3), pretty (>=1.0 && <1.2), time (>=1.2 && <1.6) [details] |
License | BSD-3-Clause |
Author | Péter Diviánszky |
Maintainer | divipp@gmail.com |
Revised | Revision 1 made by lspitzner at 2017-08-01T22:15:36Z |
Category | Testing, Text |
Source repo | head: git clone https://github.com/divipp/ActiveHs-misc |
Uploaded | by lspitzner at 2016-05-24T15:36:20Z |
Distributions | FreeBSD:0.2.4 |
Reverse Dependencies | 4 direct, 6 indirect [details] |
Downloads | 9548 total (12 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2016-05-24 [all 1 reports] |