quickcheck-combinators

[ bsd3, library, unclassified ] [ Propose Tags ]

Please see the README on GitHub at https://github.com/githubuser/template-dictionary#readme


[Skip to Readme]
Versions [faq] 0.0.0, 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5
Change log ChangeLog.md
Dependencies base (>=4.11 && <5), QuickCheck, unfoldable-restricted (>=0.0.1) [details]
License BSD-3-Clause
Copyright 2018 (c) Local Cooking Inc.
Author Athan Clark
Maintainer athan.clark@localcooking.com
Home page https://github.com/athanclark/quickcheck-combinators#readme
Bug tracker https://github.com/athanclark/quickcheck-combinators/issues
Source repo head: git clone https://github.com/athanclark/quickcheck-combinators
Uploaded by athanclark at Sat Nov 3 05:27:13 UTC 2018
Distributions NixOS:0.0.5
Downloads 1525 total (55 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2018-11-03 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for quickcheck-combinators-0.0.5

[back to package description]

quickcheck-combinators

Simply wrap the type you want to generate (assuming it satisfies all the necessary constraints) to refine the terms generated:

{-# LANGUAGE DataKinds #-}

import Data.Set (Set)
import Test.QuickCheck
import Test.QuickCheck.Instances
import GHC.TypeLits

instance Arbitrary LinearEquation where
  arbitrary = do
    vars <- arbitrary :: Gen (AtLeast 3 Set String)
    -- ...