Module

Test.StrongCheck.GenericValue

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

#GenericValue Source

newtype GenericValue

Contains a representation of a value in generic form. Consists of GenericSpine and corresponding GenericSignature.

Useful for its Arbitary instance.

Instances

#runGenericValue Source

#genericValue Source

genericValue :: forall m. MonadZero m => GenericSignature -> GenericSpine -> m GenericValue

Constructs generic value. Would return mzero if given GenericSpine doesn't conform to given GenericSignature.