fastirc-0.2.0: Fast Internet Relay Chat (IRC) library

Stabilityalpha
MaintainerErtugrul Soeylemez <es@ertes.de>

Network.FastIRC.Messages

Contents

Description

Parser and printer for IRC messages.

Synopsis

IRC messages

data Message Source

Data type for IRC messages.

Constructors

Message 

Fields

msgOrigin :: !(Maybe UserSpec)

Message origin (user/server).

msgCommand :: !Command

Message command or numeric.

messageParser :: Parser MessageSource

Parser for IRC messages.

IRC commands

commandParser :: Parser CommandSource

Parser for IRC commands and their arguments.

showCommand :: Command -> MsgStringSource

Turn a Command into a ByteString. If you need to specify an origin for the command, you should use Message together with showMessage.