Automatic testing of Haskell programs


Version on this page:2.7.6@rev:1
LTS Haskell 22.29:2.14.3
Stackage Nightly 2024-07-17:2.14.3
Latest on Hackage:

See all snapshots QuickCheck appears in

BSD-3-Clause licensed by Koen Claessen
Maintained by QuickCheck developers
This version can be pinned in stack with:QuickCheck-2.7.6@sha256:45ff46338dca0616041adade28d6b49d6a3ea810ba5dff619b2abdcbe7c93035,4748

Module documentation for 2.7.6

  • Test
    • Test.QuickCheck
      • Test.QuickCheck.Arbitrary
      • Test.QuickCheck.Exception
      • Test.QuickCheck.Gen
        • Test.QuickCheck.Gen.Unsafe
      • Test.QuickCheck.Modifiers
      • Test.QuickCheck.Monadic
      • Test.QuickCheck.Poly
      • Test.QuickCheck.Property
      • Test.QuickCheck.Random
      • Test.QuickCheck.State
      • Test.QuickCheck.Test
      • Test.QuickCheck.Text

QuickCheck is a library for random testing of program properties.

The programmer provides a specification of the program, in the form of properties which functions should satisfy, and QuickCheck then tests that the properties hold in a large number of randomly generated cases.

Specifications are expressed in Haskell, using combinators defined in the QuickCheck library. QuickCheck provides combinators to define properties, observe the distribution of test data, and define test data generators.