time-cache-0.1: Cache current time and formatted time text

Safe HaskellNone
LanguageHaskell2010

Control.Monad.Trans.Time

Documentation

class Monad m => MonadTime m where Source #

Minimal complete definition

askTime

Methods

askTime :: m UTCTime Source #

data TimeT m a Source #

Instances

MonadTrans TimeT Source # 

Methods

lift :: Monad m => m a -> TimeT m a #

Monad m => Monad (TimeT m) Source # 

Methods

(>>=) :: TimeT m a -> (a -> TimeT m b) -> TimeT m b #

(>>) :: TimeT m a -> TimeT m b -> TimeT m b #

return :: a -> TimeT m a #

fail :: String -> TimeT m a #

Functor m => Functor (TimeT m) Source # 

Methods

fmap :: (a -> b) -> TimeT m a -> TimeT m b #

(<$) :: a -> TimeT m b -> TimeT m a #

MonadFix m => MonadFix (TimeT m) Source # 

Methods

mfix :: (a -> TimeT m a) -> TimeT m a #

Applicative m => Applicative (TimeT m) Source # 

Methods

pure :: a -> TimeT m a #

(<*>) :: TimeT m (a -> b) -> TimeT m a -> TimeT m b #

(*>) :: TimeT m a -> TimeT m b -> TimeT m b #

(<*) :: TimeT m a -> TimeT m b -> TimeT m a #

MonadIO m => MonadIO (TimeT m) Source # 

Methods

liftIO :: IO a -> TimeT m a #

MonadIO m => MonadTimeFormat (TimeT m) Source # 
MonadIO m => MonadTime (TimeT m) Source # 

runTimeT :: TimeT m a -> TimeLocale -> String -> m a Source #

data TimeCacheT m a Source #

Instances

MonadTrans TimeCacheT Source # 

Methods

lift :: Monad m => m a -> TimeCacheT m a #

Monad m => Monad (TimeCacheT m) Source # 

Methods

(>>=) :: TimeCacheT m a -> (a -> TimeCacheT m b) -> TimeCacheT m b #

(>>) :: TimeCacheT m a -> TimeCacheT m b -> TimeCacheT m b #

return :: a -> TimeCacheT m a #

fail :: String -> TimeCacheT m a #

Functor m => Functor (TimeCacheT m) Source # 

Methods

fmap :: (a -> b) -> TimeCacheT m a -> TimeCacheT m b #

(<$) :: a -> TimeCacheT m b -> TimeCacheT m a #

MonadFix m => MonadFix (TimeCacheT m) Source # 

Methods

mfix :: (a -> TimeCacheT m a) -> TimeCacheT m a #

Applicative m => Applicative (TimeCacheT m) Source # 

Methods

pure :: a -> TimeCacheT m a #

(<*>) :: TimeCacheT m (a -> b) -> TimeCacheT m a -> TimeCacheT m b #

(*>) :: TimeCacheT m a -> TimeCacheT m b -> TimeCacheT m b #

(<*) :: TimeCacheT m a -> TimeCacheT m b -> TimeCacheT m a #

MonadIO m => MonadIO (TimeCacheT m) Source # 

Methods

liftIO :: IO a -> TimeCacheT m a #

MonadIO m => MonadTimeFormat (TimeCacheT m) Source # 
MonadIO m => MonadTime (TimeCacheT m) Source # 

runTimeCacheT :: (TimeUnit t, MonadIO m) => TimeCacheT m a -> t -> TimeLocale -> String -> m a Source #