Portability | portable |
---|---|
Stability | experimental |
Maintainer | Dmitry Astapov <dastapov@gmail.com>, pierre <k.pierre.k@gmail.com> |
Safe Haskell | Safe-Infered |
- type XmppMessage = Content Posn
- type XmppStateT a = StateT Stream IO a
- data Stream = Stream {}
- data StreamType
- data Stanza
- data MessageType
- = Chat
- | GroupChat
- | Headline
- | Normal
- | MessageError
- data PresenceType
- = Default
- | Unavailable
- | Subscribe
- | Subscribed
- | Unsubscribe
- | Unsubscribed
- | Probe
- | PresenceError
- data IQType
- data ShowType
- data RosterItem = RosterItem {}
- defaultStreamBlockSize :: Int
- isMessage :: Stanza -> Bool
- isPresence :: Stanza -> Bool
- isIQ :: Stanza -> Bool
Documentation
type XmppMessage = Content PosnSource
XMPP message in the parsed form
type XmppStateT a = StateT Stream IO aSource
XmppStateT is a state transformer over IO monad, using Stream as a state holder.
For API, look into Stream
XMPP stream, used as a state in XmppStateT state transformer
data StreamType Source
XMPP Stream type, used in stream
pretty-printing combinator and the likes
Client | Client-to-server |
ComponentAccept | FIXME |
ComponentConnect | FIXME |
Generic XMPP stream atom
Message | |
| |
Presence | |
| |
IQ | |
data MessageType Source
data PresenceType Source
defaultStreamBlockSize :: IntSource
Since XMPP is network-oriented, block size is equal to maximal MTU
isPresence :: Stanza -> BoolSource