ivory-quickcheck-0.1.0.0: QuickCheck driver for Ivory.

Safe HaskellNone

Ivory.QuickCheck.Arbitrary

Description

Arbitrary instances for Ivory and helper functions.

Synopsis

Documentation

integralArb :: (Integral a, Num b) => Gen a -> Gen bSource

sampleStoredLabel :: (Arbitrary a, IvoryInit a) => Label sym (Stored a) -> Gen (InitStruct sym)Source

Random struct label (of Stored values) initializer.

mkSamples :: Int -> Gen a -> IvoryGen [a]Source

Take a random number generator seed, a number of items to produce, and a generator and produces an increasingly bounded list of items.