monad-time-0.2: Type class for monads which carry the notion of the current time.
Control.Monad.Time
Synopsis
class Monad m => MonadTime m where #
Class of monads which carry the notion of the current time.
Minimal complete definition
currentTime
Methods
currentTime :: m UTCTime #
Instances
Base instance for IO.
currentTime :: IO UTCTime #
Generic, overlapping instance.
currentTime :: t m UTCTime #