monad-time-0.3.1.0: Type class for monads which carry the notion of the current time.
Control.Monad.Time
Synopsis
class Monad m => MonadTime m where Source #
Class of monads which carry the notion of the current time.
Minimal complete definition
currentTime
Methods
currentTime :: m UTCTime Source #
Instances
Base instance for IO.
currentTime :: IO UTCTime Source #
Generic, overlapping instance.
currentTime :: t m UTCTime Source #
This is ReaderT UTCTime on purpose, to avoid breaking downstream.
ReaderT UTCTime
Since: 0.3.0.0
currentTime :: ReaderT * UTCTime m UTCTime Source #