Module
Test.StrongCheck.Generic
- Package
- purescript-strongcheck-generics
- Repository
- zudov/purescript-strongcheck-generics
Generic deriving for Arbitrary
and CoArbitrary
instances.
Generation of arbitrary GenericSpine
s with corresponding GenericSignature
s.
#gArbitrary Source
gArbitrary :: forall a. Generic a => Gen a
Generate arbitrary values for any Generic
data structure
#gCoarbitrary Source
gCoarbitrary :: forall r a. Generic a => a -> Gen r -> Gen r
Perturb a generator using a Generic
data structure
#genGenericSignature Source
genGenericSignature :: Gen GenericSignature
Generates GenericSignature
s. Size parameter affects how nested the structure is.
#genGenericSpine Source
genGenericSpine :: GenericSignature -> Gen GenericSpine
Generates GenericSpine
s that conform to provided GenericSignature
.