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

Control.Monad.Time

Synopsis

Documentation

class Monad m => MonadTime m where Source #

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

Methods

currentTime :: m UTCTime Source #

Instances

Instances details
MonadTime IO Source #

Base instance for IO.

Instance details

Defined in Control.Monad.Time

Methods

currentTime :: IO UTCTime Source #

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

Generic, overlapping instance.

Instance details

Defined in Control.Monad.Time

Methods

currentTime :: t m UTCTime Source #

Monad m => MonadTime (ReaderT UTCTime m) Source #

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

Since: 0.3.0.0

Instance details

Defined in Control.Monad.Time

Methods

currentTime :: ReaderT UTCTime m UTCTime Source #