Module

Test.StrongCheck.Generic

Package
purescript-strongcheck-generics
Repository
zudov/purescript-strongcheck-generics

Generic deriving for Arbitrary and CoArbitrary instances. Generation of arbitrary GenericSpines with corresponding GenericSignatures.

#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 GenericSignatures. Size parameter affects how nested the structure is.

#genGenericSpine Source

genGenericSpine :: GenericSignature -> Gen GenericSpine

Generates GenericSpines that conform to provided GenericSignature.