Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
newtype
Sequential (m :: Type -> Type) (state :: Type -> Type -> Type)hedgehog Hedgehog A sequence of actions to execute.
Sequential :: [Action m state] -> Sequential (m :: Type -> Type) (state :: (Type -> Type) -> Type)hedgehog Hedgehog No documentation available.
checkSequential :: MonadIO m => Group -> m Boolhedgehog Hedgehog 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) ]-
hedgehog Hedgehog Executes a list of actions sequentially, verifying that all post-conditions are met and no exceptions are thrown. To generate a sequence of actions to execute, see the sequential combinator in the Hedgehog.Gen module.
-
hedgehog Hedgehog The sequence of actions.
frequency :: MonadGen m => [(Int, m a)] -> m ahedgehog Hedgehog.Gen Uses a weighted distribution to randomly select one of the generators in the list. This generator shrinks towards the first generator in the list. The input list must be non-empty.
seq :: MonadGen m => Range Int -> m a -> m (Seq a)hedgehog Hedgehog.Gen Generates a seq using a Range to determine the length.
-
hedgehog Hedgehog.Gen Generates a sequence of actions from an initial model state and set of commands.
subsequence :: MonadGen m => [a] -> m [a]hedgehog Hedgehog.Gen Generates a random subsequence of a list. For example:
Gen.print (Gen.subsequence [1..5])
=== Outcome === [1,2,4] === Shrinks === [] [2,4] [1,4] [1,2]
frequency :: MonadGen m => [(Int, m a)] -> m ahedgehog Hedgehog.Internal.Gen Uses a weighted distribution to randomly select one of the generators in the list. This generator shrinks towards the first generator in the list. The input list must be non-empty.