Generic implementation for QuickCheck's Arbitrary

Version on this page:0.2.2
LTS Haskell 20.2:1.0.1
Stackage Nightly 2022-11-28:1.0.1
Latest on Hackage:1.0.1

See all snapshots generic-arbitrary appears in

MIT licensed by contributors
Maintained by
This version can be pinned in stack with:generic-arbitrary-0.2.2@sha256:202ffbf2032672a51318f2e80d7e75b72f8950e690346b4314f38bc7e39215f7,1189

Module documentation for 0.2.2

Depends on 2 packages(full list with versions):

Generic implementations of methods of the Arbitrary class from the QuickCheck library. The approach taken here can lead to diverging instances for recursive types but is safe for non-recursive ones and guarantees flat distribution for constructors of sum-types.



  • Resolved an issue where the size of the generators could become negative


  • Added compatibility with GHC 9.2.1


  • Added GenericArbitrary for use with the DerivingVia compiler extension.
  • Minimum bound on QuickCheck changed to 2.14.


  • Public release