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

Copyright(c) Plow Technologies 2016
LicenseBSD3
Maintainermchaver@gmail.com
StabilityBeta
Safe HaskellNone
LanguageHaskell2010

Test.Aeson.Internal.RandomSamples

Description

Internal module, use at your own risk.

Synopsis

Documentation

data RandomSamples a #

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) # 
Instance details

Defined in Test.Aeson.Internal.RandomSamples

Ord a => Ord (RandomSamples a) # 
Instance details

Defined in Test.Aeson.Internal.RandomSamples

Show a => Show (RandomSamples a) # 
Instance details

Defined in Test.Aeson.Internal.RandomSamples

Generic (RandomSamples a) # 
Instance details

Defined in Test.Aeson.Internal.RandomSamples

Associated Types

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

ToJSON a => ToJSON (RandomSamples a) # 
Instance details

Defined in Test.Aeson.Internal.RandomSamples

FromJSON a => FromJSON (RandomSamples a) # 
Instance details

Defined in Test.Aeson.Internal.RandomSamples

type Rep (RandomSamples a) # 
Instance details

Defined in Test.Aeson.Internal.RandomSamples

type Rep (RandomSamples a) = D1 (MetaData "RandomSamples" "Test.Aeson.Internal.RandomSamples" "hspec-golden-aeson-0.7.0.0-FsnT2OXzJezKcgq6FGspvn" False) (C1 (MetaCons "RandomSamples" PrefixI True) (S1 (MetaSel (Just "seed") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "samples") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [a])))

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

Apply the seed.

readSeed :: ByteString -> IO Int #

Reads the seed without looking at the samples.

readSampleSize :: ByteString -> IO Int #

Read the sample size.