irc-core-2.3.0: IRC core library for glirc

Copyright(c) Eric Mertens 2016
Safe HaskellNone



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



data Identifier Source #

Identifier representing channels and nicknames

idDenote :: Identifier -> ByteArray Source #

Returns a ByteArray of an Identifier which is suitable for comparison or hashing which has been normalized for case.

mkId :: Text -> Identifier Source #

Construct an Identifier from a ByteString

idText :: Identifier -> Text Source #

Returns the original Text of an Identifier

idTextNorm :: Identifier -> Text Source #

Returns the case-normalized Text for an identifier.

idPrefix :: Identifier -> Identifier -> Bool Source #

Returns True when the first argument is a prefix of the second.