Copyright | (c) Eric Mertens, 2016 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
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 :: Lens' UserInfo Identifier
Documentation
UserInfo
packages a nickname along with the username and hsotname
if they are known in the current context.
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.