freer-extras-1.2.0.0: Useful extensions to simple-freer
Safe HaskellNone
LanguageHaskell2010

Control.Monad.Freer.Extras.Delay

Documentation

data DelayEffect r where Source #

Constructors

DelayThread :: TimeUnit a => a -> DelayEffect () 

delayThread :: forall a. TimeUnit a => forall effs. Member DelayEffect effs => a -> Eff effs () Source #

handleDelayEffect :: forall effs m. (LastMember m effs, MonadIO m) => Eff (DelayEffect ': effs) ~> Eff effs Source #