irc- A small library for parsing IRC messages.

Safe HaskellNone




Parsec parsers and a general parsing interface for IRC messages


Parsing and Formatting Functions



:: ByteString

Message string

-> Maybe Message

Parsed message

Parse a String into a Message.

Parsec Combinators for Parsing IRC messages

prefix :: Parser PrefixSource

Parse a Prefix

serverPrefix :: Parser PrefixSource

Parse a Server prefix

nicknamePrefix :: Parser PrefixSource

Parse a NickName prefix

command :: Parser CommandSource

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

parameter :: Parser ParameterSource

Parse a command parameter.

message :: Parser MessageSource

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 MessageSource

The deprecated version of decode