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

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 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.