A typeclass for fueled random generation, i.e. a variant of
the Arbitrary typeclass where the fuel for the generator is made explicit.
- This typeclass is equivalent to Rocq QuickChick's
arbitrarySizedtypeclass (QuickChick uses theNatparameter as both fuel and the generator size, here we use it just for fuel, as Plausible'sGentype constructor already internalizes the size parameter.)
Instances
Every ArbitraryFueled instance gives rise to an Arbitrary instance
Equations
Raised when a fueled generator fails due to insufficient fuel.
Equations
- Plausible.Gen.outOfFuel = Plausible.GenError.genError "out of fuel"