toxcore-0.2.12: A Tox protocol implementation in Haskell
Safe HaskellNone
LanguageHaskell2010

Network.Tox.TimedT

Documentation

newtype TimedT m a Source #

Constructors

TimedT (ReaderT Timestamp m a) 

Instances

Instances details
MonadTrans TimedT Source # 
Instance details

Defined in Network.Tox.TimedT

Methods

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

DhtNodeMonad TestDhtNodeMonad Source # 
Instance details

Defined in Network.Tox.DHT.Operation

MonadState s m => MonadState s (TimedT m) Source # 
Instance details

Defined in Network.Tox.TimedT

Methods

get :: TimedT m s #

put :: s -> TimedT m () #

state :: (s -> (a, s)) -> TimedT m a #

MonadWriter w m => MonadWriter w (TimedT m) Source # 
Instance details

Defined in Network.Tox.TimedT

Methods

writer :: (a, w) -> TimedT m a #

tell :: w -> TimedT m () #

listen :: TimedT m a -> TimedT m (a, w) #

pass :: TimedT m (a, w -> w) -> TimedT m a #

Monad m => Monad (TimedT m) Source # 
Instance details

Defined in Network.Tox.TimedT

Methods

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

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

return :: a -> TimedT m a #

Functor m => Functor (TimedT m) Source # 
Instance details

Defined in Network.Tox.TimedT

Methods

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

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

Applicative m => Applicative (TimedT m) Source # 
Instance details

Defined in Network.Tox.TimedT

Methods

pure :: a -> TimedT m a #

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

liftA2 :: (a -> b -> c) -> TimedT m a -> TimedT m b -> TimedT m c #

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

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

MonadIO m => MonadIO (TimedT m) Source # 
Instance details

Defined in Network.Tox.TimedT

Methods

liftIO :: IO a -> TimedT m a #

Keyed m => Keyed (TimedT m) Source # 
Instance details

Defined in Network.Tox.TimedT

MonadRandomBytes m => MonadRandomBytes (TimedT m) Source # 
Instance details

Defined in Network.Tox.TimedT

Monad m => Timed (TimedT m) Source # 
Instance details

Defined in Network.Tox.TimedT

Networked m => Networked (TimedT m) Source # 
Instance details

Defined in Network.Tox.TimedT

Methods

sendPacket :: (Binary payload, Show payload) => NodeInfo -> Packet payload -> TimedT m () Source #

runTimedT :: TimedT m a -> Timestamp -> m a Source #