homepage: https://github.com/fakedata-haskell/fakedata-quickcheck#readme
changelog-type: ''
hash: 39b9fbb49513c32c5b86009ec45c663e95598682d58589b469dc89f12e07ef01
test-bench-deps:
  fakedata-quickcheck: -any
  base: '>=4.7 && <5'
  hspec: -any
  text: -any
  hspec-core: -any
  fakedata: '>=0.6.0 && <0.9.0'
  regex-tdfa: -any
  random: '>=1 && <1.2.0'
  QuickCheck: '>=2.6 && <2.15'
maintainer: jappieklooster@hotmail.com
synopsis: Fake a -> Gen a
changelog: ''
basic-deps:
  base: '>=4.7 && <5'
  fakedata: '>=0.6.0 && <0.9.0'
  random: '>=1 && <1.2.0'
  QuickCheck: '>=2.6 && <2.15'
all-versions:
- 0.1.0
author: Jappie Klooster
latest: 0.1.0
description-type: markdown
description: |
  > If the truth shall kill them, let them die.

  This library allows you to make [quickcheck Generators](https://hackage.haskell.org/package/QuickCheck-2.14.1/docs/Test-QuickCheck-Gen.html#t:Gen)
  out of [Fake](https://hackage.haskell.org/package/fakedata-0.8.0/docs/Faker.html#t:Fake) functions from fakedata.


  ```haskell
  import qualified Faker.Company as CM

  isDomain :: Text -> Bool
  isDomain = (=~ "^[A-Za-z_]+\\.[a-z]{1,4}$") . T.unpack

  spec :: Spec
  spec = do
    describe "fakedata quickcheck" $
    it "forall domain fullfils is a domain name regex" $
      Q.property $ Q.forAll (fakeQuickcheck CM.domain) isDomain
  ```

  See the full code in the tests.

  ---

  Added to a separate project as discussed in [here](https://github.com/psibi/fakedata/pull/27)
license-name: MIT

Update from Hackage at 2020-10-15T07:37:13Z
Update from Hackage at 2020-10-15T07:37:13Z
