|
| Network.IRC | | Portability | non-portable (not tested) | | Stability | experimental | | Maintainer | trevor@geekgateway.com |
|
|
|
|
|
| Description |
| library for parsing IRC messages
|
|
| Synopsis |
|
|
|
|
| Type Synonyms
|
|
|
|
|
|
|
|
|
|
|
|
| IRC Datatypes
|
|
|
| The optional beginning of an IRC messages
| | Constructors | | Instances | |
|
|
|
| IRC messages are parsed as:
[ ':' prefix space ] command { space param } crlf
| | Constructors | | Instances | |
|
|
| Parsing and Formatting Functions
|
|
|
|
|
|
| :: Message | IRC Message
| | -> String | Formatted message
| | Message formatting
|
|
|
|
| :: Command | Reply
| | -> String | Text translation
| | Translate a reply into the text version of the reply.
If no text version is available, the argument is returned.
|
|
|
| Parsec Combinators for Parsing IRC messages
|
|
|
| Parse a Prefix
|
|
|
| Parse a Server prefix
|
|
|
| Parse a NickName prefix
|
|
|
| Parse a command. Either a string of capital letters, or 3 digits.
|
|
|
| Parse a command parameter.
|
|
|
| Parse a Message
|
|
|
| Parse a cr lf
|
|
|
| Consume only spaces tabs or the bell character
|
|
| Other Parser Combinators
|
|
|
| Convert a parser into an optional one that returns a Maybe
|
|
|
| Convert a parser that consumes all space after it
|
|
|
| Take all tokens until one character from a given string is found
|
|
| Produced by Haddock version 2.1.0 |