File: data-pprint.cabal

package info (click to toggle)
haskell-data-pprint 0.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 100 kB
  • sloc: haskell: 564; makefile: 2
file content (77 lines) | stat: -rw-r--r-- 2,280 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name:                data-pprint
version:             0.2.3
category:            Testing, Text
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..]
    > 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
stability:           beta
license:             BSD3
license-file:        LICENSE
author:              Péter Diviánszky
maintainer:          divipp@gmail.com
cabal-version:       >=1.6
build-type:          Simple

source-repository head
  type:             git
  location:         https://github.com/divipp/ActiveHs-misc

library
  ghc-options:       -Wall -fno-warn-name-shadowing -fno-warn-orphans
  exposed-modules:
    Data.PPrint,
    Data.Data.Eval,
    Data.Data.Compare,
    Data.Data.GenRep,
    Data.Data.GenRep.Functions,
    Data.Data.GenRep.Doc,
    Control.Exception.Pure,
    System.SimpleTimeout,
    System.SimpleTimeout.Limits,
    System.IO.Parallel
  other-modules:
  build-depends:
    base >= 4.0 && < 4.7,
    pretty >= 1.0 && < 1.2,
    mtl >= 2.0 && < 2.2,
    deepseq >= 1.1 && < 1.4,
    time >= 1.2 && < 1.5,
    parallel >= 3.1 && < 3.3