zre-0.1.5.1: ZRE protocol implementation
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.ZRE.Types

Documentation

isec :: Num a => a -> a Source #

sec :: RealFrac a => a -> Int Source #

msec :: RealFrac a => a -> Int Source #

data ZRECfg Source #

Instances

Instances details
Show ZRECfg Source # 
Instance details

Defined in Network.ZRE.Types

Default ZRECfg Source # 
Instance details

Defined in Network.ZRE.Types

Methods

def :: ZRECfg #

data API Source #

Instances

Instances details
Show API Source # 
Instance details

Defined in Network.ZRE.Types

Methods

showsPrec :: Int -> API -> ShowS #

show :: API -> String #

showList :: [API] -> ShowS #

MonadReader (EventQueue, APIQueue) ZRE Source # 
Instance details

Defined in Network.ZRE.Types

Methods

ask :: ZRE (EventQueue, APIQueue) #

local :: ((EventQueue, APIQueue) -> (EventQueue, APIQueue)) -> ZRE a -> ZRE a #

reader :: ((EventQueue, APIQueue) -> a) -> ZRE a #

data Peer Source #

Instances

Instances details
Show Peer Source # 
Instance details

Defined in Network.ZRE.Types

Methods

showsPrec :: Int -> Peer -> ShowS #

show :: Peer -> String #

showList :: [Peer] -> ShowS #

newtype ZRE a Source #

Constructors

Z 

Instances

Instances details
MonadIO ZRE Source # 
Instance details

Defined in Network.ZRE.Types

Methods

liftIO :: IO a -> ZRE a #

Applicative ZRE Source # 
Instance details

Defined in Network.ZRE.Types

Methods

pure :: a -> ZRE a #

(<*>) :: ZRE (a -> b) -> ZRE a -> ZRE b #

liftA2 :: (a -> b -> c) -> ZRE a -> ZRE b -> ZRE c #

(*>) :: ZRE a -> ZRE b -> ZRE b #

(<*) :: ZRE a -> ZRE b -> ZRE a #

Functor ZRE Source # 
Instance details

Defined in Network.ZRE.Types

Methods

fmap :: (a -> b) -> ZRE a -> ZRE b #

(<$) :: a -> ZRE b -> ZRE a #

Monad ZRE Source # 
Instance details

Defined in Network.ZRE.Types

Methods

(>>=) :: ZRE a -> (a -> ZRE b) -> ZRE b #

(>>) :: ZRE a -> ZRE b -> ZRE b #

return :: a -> ZRE a #

MonadBaseControl IO ZRE Source # 
Instance details

Defined in Network.ZRE.Types

Associated Types

type StM ZRE a #

Methods

liftBaseWith :: (RunInBase ZRE IO -> IO a) -> ZRE a #

restoreM :: StM ZRE a -> ZRE a #

MonadBase IO ZRE Source # 
Instance details

Defined in Network.ZRE.Types

Methods

liftBase :: IO α -> ZRE α #

MonadReader (EventQueue, APIQueue) ZRE Source # 
Instance details

Defined in Network.ZRE.Types

Methods

ask :: ZRE (EventQueue, APIQueue) #

local :: ((EventQueue, APIQueue) -> (EventQueue, APIQueue)) -> ZRE a -> ZRE a #

reader :: ((EventQueue, APIQueue) -> a) -> ZRE a #

type StM ZRE a Source # 
Instance details

Defined in Network.ZRE.Types

type StM ZRE a = a

writeZ :: API -> ZRE () Source #

maybeM :: Monad m => m b -> (a -> m b) -> m (Maybe a) -> m b Source #

Orphan instances

Show a => Show (Async a) Source # 
Instance details

Methods

showsPrec :: Int -> Async a -> ShowS #

show :: Async a -> String #

showList :: [Async a] -> ShowS #

Show a => Show (TBQueue a) Source # 
Instance details

Methods

showsPrec :: Int -> TBQueue a -> ShowS #

show :: TBQueue a -> String #

showList :: [TBQueue a] -> ShowS #