Gen Monad #
This monad is used to formulate randomized computations with a parameter to specify the desired size of the result.
Main definitions #
Genmonad
References #
Error thrown on generation failure, e.g. because you've run out of resources.
Instances For
Equations
The following section defines various combinators for generators, which are used
in the body of derived generators (for derived Arbitrary instances).
The code for these combinators closely mirrors those used in Rocq/Coq QuickChick (see link in the References section below).
References #
Raised when a fueled generator fails due to insufficient fuel.
Equations
Instances For
Tries all generators until one returns a Some value or all the generators failed once with None.
The generators are picked at random according to their weights (like frequency in Haskell QuickCheck),
and each generator is run at most once.