irc-core-2.2.1: IRC core library for glirc

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

Irc.UserInfo

Description

Information identifying users on IRC. This information includes a nickname and optionally a username and hostname.

Synopsis

Documentation

data UserInfo Source #

UserInfo packages a nickname along with the username and hsotname if they are known in the current context.

Constructors

UserInfo 

Fields

renderUserInfo :: UserInfo -> Text Source #

Render UserInfo as nick!username@hostname

parseUserInfo :: Text -> UserInfo Source #

Split up a hostmask into a nickname, username, and hostname. The username and hostname might not be defined but are delimited by a ! and @ respectively.

uiNick :: Functor f => (Identifier -> f Identifier) -> UserInfo -> f UserInfo Source #

Lens into userNick field.