hspec-golden-aeson-0.1.0.0: Use tests to monitor changes in Aeson serialization

Safe HaskellNone
LanguageHaskell2010

Test.Aeson.Internal.RandomSamples

Synopsis

Documentation

data RandomSamples a Source #

RandomSamples, using a seed allows you to replicate an arbitrary. By storing the seed and the samples (previously produced arbitraries), we can try to reproduce the same samples by generating the arbitraries with a seed

Constructors

RandomSamples 

Fields

Instances

Eq a => Eq (RandomSamples a) Source # 
Ord a => Ord (RandomSamples a) Source # 
Show a => Show (RandomSamples a) Source # 
Generic (RandomSamples a) Source # 

Associated Types

type Rep (RandomSamples a) :: * -> * #

FromJSON a => FromJSON (RandomSamples a) Source # 
ToJSON a => ToJSON (RandomSamples a) Source # 
type Rep (RandomSamples a) Source # 
type Rep (RandomSamples a) = D1 (MetaData "RandomSamples" "Test.Aeson.Internal.RandomSamples" "hspec-golden-aeson-0.1.0.0-2rnFtmdD5x0IsmLf8w7gun" False) (C1 (MetaCons "RandomSamples" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "seed") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) (S1 (MetaSel (Just Symbol "samples") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [a]))))

setSeed :: Int -> Gen a -> Gen a Source #

readSeed :: ByteString -> IO Int Source #

reads the seed without looking at the samples

readSampleSize :: ByteString -> IO Int Source #

read the sample size