small-steps-1.1.0.1: Small step semantics
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Hedgehog.Extra.Manual

Description

Manual generators.

This module provides functions to convert hedgehog Gens to and from a Manual generators, and functions to manipulate these manual generators.

Synopsis

Documentation

newtype Manual a Source #

Constructors

Manual (SizeSeed → a) 

Instances

Instances details
Applicative Manual Source # 
Instance details

Defined in Test.Hedgehog.Extra.Manual

Methods

pure ∷ a → Manual a #

(<*>)Manual (a → b) → Manual a → Manual b #

liftA2 ∷ (a → b → c) → Manual a → Manual b → Manual c #

(*>)Manual a → Manual b → Manual b #

(<*)Manual a → Manual b → Manual a #

Functor Manual Source # 
Instance details

Defined in Test.Hedgehog.Extra.Manual

Methods

fmap ∷ (a → b) → Manual a → Manual b #

(<$) ∷ a → Manual b → Manual a #

Monad Manual Source # 
Instance details

Defined in Test.Hedgehog.Extra.Manual

Methods

(>>=)Manual a → (a → Manual b) → Manual b #

(>>)Manual a → Manual b → Manual b #

return ∷ a → Manual a #

unManualManual a → SizeSeed → a Source #

toManualGen a → Manual (TreeT (MaybeT Identity) a) Source #

fromManualManual (TreeT (MaybeT Identity) a) → Gen a Source #

Combinators

sized ∷ (SizeManual a) → Manual a Source #

replicate ∷ ∀ a. IntManual a → Manual [a] Source #

A version of replicateM specific to Manual.

interleave ∷ [TreeT (MaybeT Identity) a] → TreeT (MaybeT Identity) [a] Source #

Auxiliary

wrapTreeTMaybe (NodeT (MaybeT Identity) a) → TreeT (MaybeT Identity) a Source #

unwrapTreeTTreeT (MaybeT Identity) a → Maybe (NodeT (MaybeT Identity) a) Source #