polysemy-wire-zoo-0.1.0: Polysemy interface for various libraries
Safe HaskellSafe-Inferred
LanguageHaskell2010

Wire.Sem.Now.IO

Synopsis

Documentation

nowToIOAction :: forall r a. Member (Embed IO) r => IO UTCTime -> Sem (Now ': r) a -> Sem r a Source #

An interpreter of the Now effect to IO via a custom IO action that provides the current time.

nowToIO :: forall r a. Member (Embed IO) r => Sem (Now ': r) a -> Sem r a Source #

A specialisation of nowToIOAction to the getCurrentTime IO action.