| Copyright | (c) Eric Mertens, 2016 |
|---|---|
| License | ISC |
| Maintainer | emertens@gmail.com |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Irc.Identifier
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
- data Identifier
- idDenote :: Identifier -> ByteString
- mkId :: Text -> Identifier
- idText :: Identifier -> Text
Documentation
data Identifier Source #
Identifier representing channels and nicknames
Instances
| Eq Identifier Source # | Equality on normalized identifier |
| Ord Identifier Source # | Comparison on normalized identifier |
| Read Identifier Source # | |
| Show Identifier Source # | |
| Hashable Identifier Source # | Hash on normalized identifier |
idDenote :: Identifier -> ByteString Source #
Returns the case-normalized ByteString of an Identifier
which is suitable for comparison or hashing.
mkId :: Text -> Identifier Source #
Construct an Identifier from a ByteString
idText :: Identifier -> Text Source #
Returns the original Text of an Identifier