Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data RandomSamples a = RandomSamples {}
- setSeed :: Int -> Gen a -> Gen a
- readSeed :: ByteString -> IO Int
- readSampleSize :: ByteString -> IO Int
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
Eq a => Eq (RandomSamples a) Source # | |
Ord a => Ord (RandomSamples a) Source # | |
Show a => Show (RandomSamples a) Source # | |
Generic (RandomSamples a) Source # | |
FromJSON a => FromJSON (RandomSamples a) Source # | |
ToJSON a => ToJSON (RandomSamples a) Source # | |
type Rep (RandomSamples a) Source # | |
readSampleSize :: ByteString -> IO Int Source #
read the sample size