The latest version of data-pprint is 0.2.4.2-0.
data-pprint
Version 0.1 revision 0 uploaded by PeterDivianszky.
Package meta
- Synopsis
- Prettyprint and compare Data values
- Description
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..] 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!"
- Author
- Péter Diviánszky
- Bug reports
- n/a
- Category
- Testing, Text
- Copyright
- n/a
- Homepage
- n/a
- Maintainer
- divip@aszt.inf.elte.hu
- Package URL
- n/a
- Stability
- beta