 | irc-0.4.2: A small library for parsing IRC messages. | Contents | Index |
|
|
|
|
|
| Description |
| Datatypes for representing IRC messages, as well as formatting them.
|
|
| Synopsis |
|
|
|
|
| Type Synonyms
|
|
| type Parameter = String |
|
| type ServerName = String |
|
| type UserName = String |
|
| type RealName = String |
|
| type Command = String |
|
| IRC Datatypes
|
|
| data Prefix |
| The optional beginning of an IRC messages
| | Constructors | | Instances | |
|
|
| data Message |
| IRC messages are parsed as:
[ ':' prefix space ] command { space param } crlf
| | Constructors | | Instances | |
|
|
| Formatting functions
|
|
| encode :: Message -> String |
| Encode a message to its string representation
|
|
| showMessage :: Message -> String |
|
| showPrefix :: Prefix -> String |
|
| showParameters :: [Parameter] -> String |
|
| translateReply |
| :: Command | Reply
| | -> String | Text translation
| | Translate a reply into its text description.
If no text is available, the argument is returned.
|
|
|
| replyTable :: [(String, String)] |
|
| Deprecated
|
|
| render :: Message -> String |
| This is the deprecated version of encode
|
|
| Produced by Haddock version 0.8 |