Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

QuickCheck

hackage.haskell.org

  • Free plan
  • Linux

What QuickCheck is

QuickCheck is a free Haskell library for testing program properties against randomly generated cases. Developers write specifications with QuickCheck combinators and can define generators for test data. Other combinators help examine how generated values are distributed. The Test.QuickCheck.Monadic module supports monadic property testing; the listed capabilities also include stateful tests, shrinking failing cases, and reproducible failures. The package README describes adding QuickCheck to project dependencies for use in tests or a REPL. A companion package, quickcheck-instances, supplies instances for types in Haskell Platform packages and adds dependencies. QuickCheck uses the BSD-3-Clause license and lists dependencies including base, containers, random, splitmix, template-haskell, and transformers. Hackage reports it tested with GHC versions from 8.10 up to but not including 9.15, and with Hugs. A make-hugs script can create a Hugs-compatible version and may help with other non-GHC implementations. Hackage lists QuickCheck-2.18.0.0 as a downloadable Cabal source package.

Who it suits

QuickCheck suits Haskell developers who want to check program properties using generated test data, including stateful or monadic properties. It is available as a free package under BSD-3-Clause.

Good to know, and what to watch

  • Free Haskell library
  • Supports generated data and property specifications
  • Can shrink failing cases
  • Includes monadic property testing
  • Supports reproducible failures
  • Requires Haskell and listed package dependencies
  • GHC compatibility is reported only below version 9.15
  • Hugs compatibility uses a separate make-hugs script

QuickCheck

Free

Free plan

The verdict

QuickCheck provides property-based testing tools for Haskell, including generators, shrinking, and monadic testing. Check its listed compiler compatibility and dependencies when considering it for a project.

What the maker publishes

Companion package
The quickcheck-instances companion package provides instances for types in Haskell Platform packages, with additional dependencies. source
Compiler compatibility
Hackage reports the package tested with GHC versions at least 8.10 and below 9.15, and Hugs. source
Data distribution
QuickCheck provides combinators to observe the distribution of test data. source
Dependencies
The package lists dependencies including base, containers, random, splitmix, template-haskell, and transformers. source
Download
Hackage lists QuickCheck-2.18.0.0 as a downloadable Cabal source package. source
Generators
QuickCheck provides combinators for defining test data generators. source
Hugs compatibility
The make-hugs script creates a Hugs-compatible version and may be useful for other non-GHC implementations. source
License
The package is licensed under BSD-3-Clause. source
Monadic testing
The monadic property testing library is provided in the Test.QuickCheck.Monadic module. source
Property specifications
Program specifications are expressed in Haskell using QuickCheck combinators. source
Purpose
QuickCheck is a Haskell library for random testing of program properties by checking specifications against randomly generated cases. source
Use
The package README says to add QuickCheck to package dependencies to use it in tests or a REPL. source

Checked against the maker's pages on 2 Oct 2026.