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 Source #

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

Minimal complete definition

currentTime

Instances

MonadTime IO Source #

Base instance for IO.

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

Generic, overlapping instance.

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