Copyright | (c) Plow Technologies 2016 |
---|---|
License | BSD3 |
Maintainer | mchaver@gmail.com |
Stability | Beta |
Safe Haskell | None |
Language | Haskell2010 |
Internal module, use at your own risk.
- 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 # | |
ToJSON a => ToJSON (RandomSamples a) Source # | |
FromJSON a => FromJSON (RandomSamples a) Source # | |
type Rep (RandomSamples a) Source # | |
readSampleSize :: ByteString -> IO Int Source #
Read the sample size.