irc- A small library for parsing IRC messages.

Safe HaskellNone




Parsec parsers and a general parsing interface for IRC messages


Parsing and Formatting Functions

decode Source


:: ByteString

Message string

-> Maybe Message

Parsed message

Parse a String into a Message.

Parsec Combinators for Parsing IRC messages

prefix :: Parser Prefix Source

Parse a Prefix

serverPrefix :: Parser Prefix Source

Parse a Server prefix

nicknamePrefix :: Parser Prefix Source

Parse a NickName prefix

command :: Parser Command Source

Parse a command. Either a string of capital letters, or 3 digits.

parameter :: Parser Parameter Source

Parse a command parameter.

message :: Parser Message Source

Parse a Message

crlf :: Parser () Source

Parse a cr lf

spaces :: Parser () Source

Consume only spaces, tabs, or the bell character

Deprecated Functions

parseMessage :: ByteString -> Maybe Message Source

The deprecated version of decode