Copyright | (c) Dmitry Astapov, 2006 ; pierre, 2007 |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Dmitry Astapov <dastapov@gmail.com>, pierre <k.pierre.k@gmail.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
Network.XMPP.Types
Description
- 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
- data IQType
- data ShowType
- data RosterItem = RosterItem {}
- defaultStreamBlockSize :: Int
- isMessage :: Stanza -> Bool
- isPresence :: Stanza -> Bool
- isIQ :: Stanza -> Bool
Documentation
type XmppMessage = Content Posn
XMPP message in the parsed form
type XmppStateT a = StateT Stream IO a
XmppStateT is a state transformer over IO monad, using Stream as a "state holder".
For API, look into Stream
data Stream
XMPP stream, used as a state in XmppStateT state transformer
data StreamType
XMPP Stream type, used in stream
pretty-printing combinator and the likes
Constructors
Client | Client-to-server |
ComponentAccept | FIXME |
ComponentConnect | FIXME |
Instances
data Stanza
Generic XMPP stream atom
Constructors
Message | |
Fields | |
Presence | |
Fields
| |
IQ | |
data PresenceType
Instances
data ShowType
Since XMPP is network-oriented, block size is equal to maximal MTU
isPresence :: Stanza -> Bool