The quickcheck-combinators package

[Tags:bsd3, library]

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)
    -- ...

Properties

Versions 0.0.0, 0.0.1, 0.0.2
Change log ChangeLog.md
Dependencies base (>=4.8 && <5), QuickCheck, unfoldable-restricted (>=0.0.1) [details]
License BSD3
Author Athan Clark <athan.clark@gmail.com>
Maintainer Athan Clark <athan.clark@gmail.com>
Category Testing
Source repository head: git clone git@github.com:athanclark/quickcheck-combinators.git
Uploaded Fri Apr 14 05:29:24 UTC 2017 by athanclark
Distributions NixOS:0.0.2, Stackage:0.0.2
Downloads 171 total (14 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees