HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehedgehog-1.7Haskell2010

Hedgehog.Internal.Runner

  • 1 type
  • 9 values
  • Packagehedgehog-1.7
  • Exports10
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceRunner.hs

Running Individual Properties

3 declarations

Running Groups of Properties

4 declarations
datadata RunnerConfig
#

Configuration for a property test run.

Constructors

Instances4Eq, Ord, Show, Lift
valuecheckParallel :: MonadIO m => Group -> m Bool
#

Check a group of properties in parallel.

Warning: although this check function runs tests faster than checkSequential, it should be noted that it may cause problems with properties that are not self-contained. For example, if you have a group of tests which all use the same database table, you may find that they interfere with each other when being run in parallel.

Using Template Haskell for property discovery:

tests :: IO Bool
tests =
  checkParallel $$(discover)

With manually specified properties:

tests :: IO Bool
tests =
  checkParallel $ Group "Test.Example" [
      ("prop_reverse", prop_reverse)
    ]
valuecheckSequential :: MonadIO m => Group -> m Bool
#

Check a group of properties sequentially.

Using Template Haskell for property discovery:

tests :: IO Bool
tests =
  checkSequential $$(discover)

With manually specified properties:

tests :: IO Bool
tests =
  checkSequential $ Group "Test.Example" [
      ("prop_reverse", prop_reverse)
    ]

Internal

3 declarations