HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleextensible-effects-5.0.0.1Haskell2010

Control.Eff.Fresh

Create unique Enumerable values.

  • 1 type
  • 3 values
datadata Fresh v where
#

Create unique Enumerable values.

Constructors

Instances3Handle, MonadBaseControl, StM
valuewithFresh :: Monad m => a -> Int -> m (a, Int)
#

Embed a pure value. Note that this is a specialized form of State's and we could have reused it.