extensible-effects-2.5.0.0: An Alternative to Monad Transformers
Control.Eff.Fresh
Description
Create unique Enumerable values.
Synopsis
data Fresh v where Source #
Constructors
fresh :: Member Fresh r => Eff r Int Source #
Produce a value that has not been previously produced.
runFresh' :: Eff (Fresh ': r) w -> Int -> Eff r w Source #
Run an effect requiring unique values.