bump version and stuff
commit926d869aab7238ca59186a520f98ec60a96cf5c3
authorAleksey Uymanov <s9gf4ult@gmail.com>
dateTue 3 Aug 2021, 16:04 (5 years ago)
parent9bbd598
.gitignore+1
@@ -3,3 +3,4 @@ dist
33.stack-work
44.cabal-sandbox/
55cabal.sandbox.config
6+dist-newstyle
CHANGELOG.md+6
@@ -1,3 +1,9 @@
1+0.3.0
2+-----
3+
4+* Fixed issue with too big terms in case of recursive types
5+* Recpect the `size` argument
6+
170.2.0
28-----
39
README.md+18
@@ -1,3 +1,21 @@
11# generic-arbitrary
22
33[](https://travis-ci.org/typeable/generic-arbitrary)
4+
5+Deriving `Arbitrary` via `Generic`.
6+
7+``` haskell
8+import GHC.Generics (Generic)
9+import Test.QuickCheck
10+import Test.QuickCheck.Arbitrary.Generic
11+
12+data Expr
13+ = Lit Int
14+ | Add Expr Expr
15+ | Mul Expr Expr
16+ deriving (Eq, Show, Generic)
17+
18+instance Arbitrary Expr where
19+ arbitrary = genericArbitrary
20+ shrink = genericShrink
21+```
generic-arbitrary.cabal+5−1
@@ -1,5 +1,5 @@
11name: generic-arbitrary
2−version: 0.2.0
2+version: 0.3.0
33synopsis: Generic implementation for QuickCheck's Arbitrary
44description:
55 Generic implementations of methods of the 'Arbitrary' class from the
@@ -23,6 +23,10 @@ tested-with: GHC == 7.10.3
2323 , GHC == 8.6.5
2424 , GHC == 8.10.1
2525
26+source-repository head
27+ type: git
28+ location: https://github.com/typeable/generic-arbitrary.git
29+
2630library
2731 exposed-modules: Test.QuickCheck.Arbitrary.Generic
2832 build-depends: base >=4.8 && <5