fakedata-quickcheck-0.1.0: Fake a -> Gen a

Safe HaskellNone
LanguageHaskell2010

Test.QuickCheck.Gen.Faker

Synopsis

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.