Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class Monad m => MonadTime m where
- currentTime :: m UTCTime
- monotonicTime :: m Double
Documentation
class Monad m => MonadTime m where Source #
Class of monads which make it possible to measure time.
currentTime :: m UTCTime Source #
monotonicTime :: m Double Source #
Instances
MonadTime IO Source # | Base instance for IO. |
Defined in Control.Monad.Time currentTime :: IO UTCTime Source # monotonicTime :: IO Double Source # | |
(MonadTime m, MonadTrans t, Monad (t m)) => MonadTime (t m) Source # | Generic, overlapping instance. |
Defined in Control.Monad.Time currentTime :: t m UTCTime Source # monotonicTime :: t m Double Source # |