irc-core-2.5.0: IRC core library for glirc

Copyright(c) Eric Mertens 2016
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Irc.Codes

Description

This module defines support for working with IRC's numeric reply codes. Pattern synonyms are provided for each of the possible IRC reply codes.

Reply code information was extracted from https://www.alien.net.au/irc/irc2numerics.html

Synopsis

Documentation

newtype ReplyCode Source #

Type of numeric reply codes

Constructors

ReplyCode Word 
Instances
Eq ReplyCode Source # 
Instance details

Defined in Irc.Codes

Ord ReplyCode Source # 
Instance details

Defined in Irc.Codes

Read ReplyCode Source #

Reads only the number

Instance details

Defined in Irc.Codes

Show ReplyCode Source #

Shows number

Instance details

Defined in Irc.Codes

data ReplyType Source #

Categories for reply codes

Constructors

ClientServerReply

0-99 Messages between client and server

CommandReply

200-399 Responses to commands

ErrorReply

400-599 Errors

UnknownReply

Uncategorized

data ReplyCodeInfo Source #

Information describing the category and human decipherable name of a reply.

Constructors

ReplyCodeInfo 

Fields

replyCodeInfo :: ReplyCode -> ReplyCodeInfo Source #

Compute information for a reply code

defaultReplyCodeInfo :: Int -> ReplyCodeInfo Source #

Categorize a reply code using the unknown category and simply showing the reply code's number as its name.

replyCodeInfoTable :: Vector ReplyCodeInfo Source #

Information about reply codes as derived from Freenode's ircd-seven.