HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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).