| Copyright | (c) Eric Mertens, 2016 |
|---|---|
| License | ISC |
| Maintainer | emertens@gmail.com |
| Safe Haskell | None |
| Language | Haskell2010 |
Irc.UserInfo
Description
Information identifying users on IRC. This information includes a nickname and optionally a username and hostname.
- data UserInfo = UserInfo {}
- renderUserInfo :: UserInfo -> Text
- parseUserInfo :: Text -> UserInfo
- uiNick :: Functor f => (Identifier -> f Identifier) -> UserInfo -> f UserInfo
Documentation
UserInfo packages a nickname along with the username and hsotname
if they are known in the current context.
Constructors
| UserInfo | |
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.