Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- runZre :: ZRE a -> IO ()
- runZreCfg :: ZRECfg -> ZRE a -> IO ()
- runZreEnvConfig :: ZRE a -> IO ()
- runZreParse :: Parser extra -> (extra -> ZRE a) -> IO ()
- readZ :: ZRE Event
- writeZ :: API -> ZRE ()
- unReadZ :: Event -> ZRE ()
- defaultConf :: ZRECfg
- data API
- data Event
- data ZRE a
- data Group
- mkGroup :: ByteString -> Group
- unGroup :: Group -> ByteString
- zjoin :: Group -> ZRE ()
- zleave :: Group -> ZRE ()
- zshout :: Group -> ByteString -> ZRE ()
- zshout' :: Group -> [ByteString] -> ZRE ()
- zwhisper :: UUID -> ByteString -> ZRE ()
- zdebug :: ZRE ()
- znodebug :: ZRE ()
- zquit :: ZRE ()
- zfail :: String -> ZRE a
- zrecv :: ZRE Event
- pEndpoint :: Endpoint -> ByteString
- toASCIIBytes :: UUID -> ByteString
- getApiQueue :: ZRE APIQueue
- getEventQueue :: ZRE EventQueue
- module Network.ZRE.Lib
Documentation
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.
defaultConf :: ZRECfg Source #
DoJoin Group | |
DoLeave Group | |
DoShout Group ByteString | |
DoShoutMulti Group [ByteString] | |
DoWhisper UUID ByteString | |
DoDiscover UUID Endpoint | |
DoDebug Bool | |
DoQuit |
Instances
Show API Source # | |
MonadReader (EventQueue, APIQueue) ZRE Source # | |
Defined in Network.ZRE.Types ask :: ZRE (EventQueue, APIQueue) # local :: ((EventQueue, APIQueue) -> (EventQueue, APIQueue)) -> ZRE a -> ZRE a # reader :: ((EventQueue, APIQueue) -> a) -> ZRE a # |
Instances
Show Event Source # | |
MonadReader (EventQueue, APIQueue) ZRE Source # | |
Defined in Network.ZRE.Types ask :: ZRE (EventQueue, APIQueue) # local :: ((EventQueue, APIQueue) -> (EventQueue, APIQueue)) -> ZRE a -> ZRE a # reader :: ((EventQueue, APIQueue) -> a) -> ZRE a # |
Instances
MonadIO ZRE Source # | |
Defined in Network.ZRE.Types | |
Applicative ZRE Source # | |
Functor ZRE Source # | |
Monad ZRE Source # | |
MonadBaseControl IO ZRE Source # | |
MonadBase IO ZRE Source # | |
Defined in Network.ZRE.Types | |
MonadReader (EventQueue, APIQueue) ZRE Source # | |
Defined in Network.ZRE.Types ask :: ZRE (EventQueue, APIQueue) # local :: ((EventQueue, APIQueue) -> (EventQueue, APIQueue)) -> ZRE a -> ZRE a # reader :: ((EventQueue, APIQueue) -> a) -> ZRE a # | |
type StM ZRE a Source # | |
Defined in Network.ZRE.Types |
unGroup :: Group -> ByteString Source #
pEndpoint :: Endpoint -> ByteString Source #
toASCIIBytes :: UUID -> ByteString #
Convert a UUID into a hyphentated string using lower-case letters, packed
as ASCII bytes into ByteString
.
module Network.ZRE.Lib