Popularity
1.6
Declining
Activity
0.0
Stable
0
3
0

Monthly Downloads: 9
Programming language: Haskell
License: MIT License
Tags: Random     Fake     FakeData    
Latest version: v0.2.0
Add another 'fakedata' Package

README

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

See the full code in the tests.