| |||||||||||||||||||||||
| |||||||||||||||||||||||
| |||||||||||||||||||||||
Description | |||||||||||||||||||||||
Parsec parsers and a general parsing interface for IRC messages | |||||||||||||||||||||||
Synopsis | |||||||||||||||||||||||
| |||||||||||||||||||||||
Parsing and Formatting Functions | |||||||||||||||||||||||
decode | |||||||||||||||||||||||
| |||||||||||||||||||||||
Parsec Combinators for Parsing IRC messages | |||||||||||||||||||||||
prefix :: CharParser st Prefix | |||||||||||||||||||||||
Parse a Prefix | |||||||||||||||||||||||
serverPrefix :: CharParser st Prefix | |||||||||||||||||||||||
Parse a Server prefix | |||||||||||||||||||||||
nicknamePrefix :: CharParser st Prefix | |||||||||||||||||||||||
Parse a NickName prefix | |||||||||||||||||||||||
command :: CharParser st Command | |||||||||||||||||||||||
Parse a command. Either a string of capital letters, or 3 digits. | |||||||||||||||||||||||
parameter :: CharParser st Parameter | |||||||||||||||||||||||
Parse a command parameter. | |||||||||||||||||||||||
message :: CharParser st Message | |||||||||||||||||||||||
Parse a Message | |||||||||||||||||||||||
crlf :: CharParser st () | |||||||||||||||||||||||
Parse a cr lf | |||||||||||||||||||||||
spaces :: CharParser st () | |||||||||||||||||||||||
Consume only spaces tabs or the bell character | |||||||||||||||||||||||
Other Parser Combinators | |||||||||||||||||||||||
tokenize :: CharParser st a -> CharParser st a | |||||||||||||||||||||||
Convert a parser that consumes all space after it | |||||||||||||||||||||||
takeUntil :: String -> CharParser st String | |||||||||||||||||||||||
Take all tokens until one character from a given string is found | |||||||||||||||||||||||
Deprecated Functions | |||||||||||||||||||||||
parseMessage :: String -> Maybe Message | |||||||||||||||||||||||
The deprecated version of decode | |||||||||||||||||||||||
Produced by Haddock version 0.8 |