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

Network.ZRE

Synopsis

Documentation

runZre :: ZRE a -> IO () Source #

runZreCfg :: ZRECfg -> ZRE a -> IO () Source #

runZreEnvConfig :: ZRE a -> IO () Source #

Run with config file loaded from the enviornment variable ENVCFG (etczre.conf or ~/.zre.conf)

runZreParse :: Parser extra -> (extra -> ZRE a) -> IO () Source #

Run with config file loaded from the environment variable ENVCFG (etczre.conf or ~/.zre.conf), possibly overriden by command-line options.

Accepts another `optparse-applicative` Parser for extending built-in one.

writeZ :: API -> ZRE () Source #

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 ZRE a Source #

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

data Group Source #

Instances

Instances details
Show Group Source # 
Instance details

Defined in Data.ZRE

Methods

showsPrec :: Int -> Group -> ShowS #

show :: Group -> String #

showList :: [Group] -> ShowS #

Eq Group Source # 
Instance details

Defined in Data.ZRE

Methods

(==) :: Group -> Group -> Bool #

(/=) :: Group -> Group -> Bool #

Ord Group Source # 
Instance details

Defined in Data.ZRE

Methods

compare :: Group -> Group -> Ordering #

(<) :: Group -> Group -> Bool #

(<=) :: Group -> Group -> Bool #

(>) :: Group -> Group -> Bool #

(>=) :: Group -> Group -> Bool #

max :: Group -> Group -> Group #

min :: Group -> Group -> Group #

mkGroup :: ByteString -> Group Source #

Constructor for Group

toASCIIBytes :: UUID -> ByteString #

Convert a UUID into a hyphentated string using lower-case letters, packed as ASCII bytes into ByteString.

This should be equivalent to toString with pack.