Hoogle Search
Within LTS Haskell 24.50 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
data
Callback (input :: Type -> Type -> Type) output (state :: Type -> Type -> Type)hedgehog Hedgehog Optional command configuration.
data
Parallel (m :: Type -> Type) (state :: Type -> Type -> Type)hedgehog Hedgehog A sequential prefix of actions to execute, with two branches to execute in parallel.
-
hedgehog Hedgehog No documentation available.
checkParallel :: MonadIO m => Group -> m Boolhedgehog Hedgehog 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) ]-
hedgehog Hedgehog A set of callbacks which provide optional command configuration such as pre-condtions, post-conditions and state updates.
-
hedgehog Hedgehog Executes the prefix actions sequentially, then executes the two branches in parallel, verifying that no exceptions are thrown and that there is at least one sequential interleaving where all the post-conditions are met. To generate parallel actions to execute, see the parallel combinator in the Hedgehog.Gen module.
forAll :: forall (m :: Type -> Type) a . (Monad m, Show a, HasCallStack) => Gen a -> PropertyT m ahedgehog Hedgehog Generates a random input for the test by running the provided generator.
-
hedgehog Hedgehog Generates a random input for the test by running the provided generator. This is a the same as forAll but allows the user to provide a custom rendering function. This is useful for values which don't have a Show instance.
-
hedgehog Hedgehog The first branch.
-
hedgehog Hedgehog The second branch.