Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- fakeQuickcheck' :: FakerSettings -> Fake a -> Gen a
- fakeQuickcheck :: Fake a -> Gen a
Documentation
fakeQuickcheck' :: FakerSettings -> Fake a -> Gen a Source #
copied from https://github.com/parsonsmatt/hedgehog-fakedata/blob/d342c6eb5aeb9990bb36ede1d1f08becc7d71e16/src/Hedgehog/Gen/Faker.hs Works in Quickcheck gen instead of hedgehog
Select a value Fake
program in Gen
.
Note that the implementation relies on unsafePerformIO
.
The faker library uses IO internally for looking up data files.
but liftIO
in the Fake
monad is a gateway to arbitrary side effects.
This library doesn't solve that.
fakeQuickcheck :: Fake a -> Gen a Source #