MIT licensed by Jappie Klooster
This version can be pinned in stack with:fakedata-quickcheck-0.2.0@sha256:29584c31c3928bd3aa6997458cce238be84659eec72fc83a9bb623787704bae7,2674

Module documentation for 0.2.0

If the truth shall kill them, let them die.

This library allows you to make quickcheck Generators out of Fake functions from fakedata.

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.forAll (fakeQuickcheck CM.domain) isDomain

See the full code in the tests.