HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecriterion-1.6.4.0Haskell2010

Criterion.Monad

The environment in which most criterion code executes.

  • 1 type
  • 2 values
newtypenewtype Criterion a
#

The monad in which most criterion code executes.

Instances10Monad, Functor, MonadFail, Applicative, MonadIO, MonadCatch, …
valuegetGen :: Criterion GenIO
#

Return a random number generator, creating one if necessary.

This is not currently thread-safe, but in a harmless way (we might call createSystemRandom more than once if multiple threads race).