| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.ZRE
- runZre :: ZRE a -> IO ()
- runZreCfg :: ZRECfg -> ZRE a -> IO ()
- runZreOpts :: ZRE a -> IO ()
- readZ :: ZRE Event
- writeZ :: API -> ZRE ()
- unReadZ :: Event -> ZRE ()
- defaultConf :: ZRECfg
- data API
- data Event
- data ZRE a
- type 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 ()
- pEndpoint :: Endpoint -> ByteString
- toASCIIBytes :: UUID -> ByteString
- getApiQueue :: ZRE APIQueue
- getEventQueue :: ZRE EventQueue
Documentation
runZreOpts :: ZRE a -> IO () Source #
defaultConf :: ZRECfg Source #
Constructors
| DoJoin Group | |
| DoLeave Group | |
| DoShout Group ByteString | |
| DoShoutMulti Group [ByteString] | |
| DoWhisper UUID ByteString | |
| DoDiscover UUID Endpoint | |
| DoDebug Bool | |
| DoQuit |
Instances
Constructors
Instances
type 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.