monad-time-0.3.1.0: Type class for monads which carry the notion of the current time.

Safe HaskellSafe
LanguageHaskell2010

Control.Monad.Time

Synopsis

Documentation

class Monad m => MonadTime m where #

Class of monads which carry the notion of the current time.

Methods

currentTime :: m UTCTime #

Instances
MonadTime IO #

Base instance for IO.

Instance details

Defined in Control.Monad.Time

(MonadTime m, MonadTrans t, Monad (t m)) => MonadTime (t m) #

Generic, overlapping instance.

Instance details

Defined in Control.Monad.Time

Methods

currentTime :: t m UTCTime #

Monad m => MonadTime (ReaderT UTCTime m) #

This is ReaderT UTCTime on purpose, to avoid breaking downstream.

Since: 0.3.0.0

Instance details

Defined in Control.Monad.Time