hspec-golden-aeson-0.2.0.1: 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 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) :: * -> * #

ToJSON a => ToJSON (RandomSamples a) Source # 
FromJSON a => FromJSON (RandomSamples a) Source # 
type Rep (RandomSamples a) Source # 
type Rep (RandomSamples a) = D1 (MetaData "RandomSamples" "Test.Aeson.Internal.RandomSamples" "hspec-golden-aeson-0.2.0.1-BZWjNplPW9fETuOwm3YAkz" 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 #

Apply the seed.

readSeed :: ByteString -> IO Int Source #

Reads the seed without looking at the samples.

readSampleSize :: ByteString -> IO Int Source #

Read the sample size.