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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.33.0.
--
-- see: https://github.com/sol/hpack
--
-- hash: de52737f16be1f12f795928da7d441db57123a1960a64a0aa50ae383040cce22
name: less-arbitrary
version: 0.1.0.1
synopsis: Linear time testing with variant of Arbitrary class that always terminates.
description: Ever found non-terminating Arbitrary instance?
Ever wondered what would be a runtime cost of particular Arbitrary instance?
.
Never let it bother you again:
this variant of Arbitrary is automatically generating instances, and allows you to see predictable linear time generators
for most types (providing that you have any terminating constructor, that is constructor that does not go deeper into the data structure.)
.
Usage:
```
import Test.LessArbitrary
.
data MyDataType = ...
deriving (Show, Generic)
.
instance LessArbitrary MyDataType
instance Arbitrary where
arbitrary = lessArbitrary
```
category: Web
homepage: https://github.com/mgajda/less-arbitrary#readme
bug-reports: https://github.com/mgajda/less-arbitrary/issues
author: Michał J. Gajda <mjgajda@migamake.com>
maintainer: Michał J. Gajda <mjgajda@migamake.com>
license: BSD3
license-file: LICENSE
build-type: Simple
extra-source-files:
CHANGELOG.md
README.md
source-repository head
type: git
location: https://github.com/mgajda/less-arbitrary
library
exposed-modules:
Test.LessArbitrary
other-modules:
Paths_less_arbitrary
hs-source-dirs:
src
build-depends:
QuickCheck
, base >=4.5 && <=4.15
, containers
, generic-arbitrary
, hashable
, mtl
, random
, scientific
, text
, transformers
, unordered-containers
, vector
default-language: Haskell2010
test-suite less-arbitrary
type: exitcode-stdio-1.0
main-is: LessArbitrary.hs
other-modules:
Test.Arbitrary
Paths_less_arbitrary
hs-source-dirs:
test/less/
test
build-depends:
QuickCheck
, base >=4.5 && <=4.15
, containers
, generic-arbitrary
, hashable
, less-arbitrary
, mtl
, quickcheck-classes
, quickcheck-instances
, random
, scientific
, text
, transformers
, unordered-containers
, vector
default-language: Haskell2010
|