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.
Synopsis
- data UserInfo = UserInfo {}
- renderUserInfo :: UserInfo -> Text
- parseUserInfo :: Text -> UserInfo
- uiNick :: Functor f => (Identifier -> f Identifier) -> UserInfo -> f UserInfo
- uiName :: Functor f => (Text -> f Text) -> UserInfo -> f UserInfo
- uiHost :: Functor f => (Text -> f Text) -> UserInfo -> f UserInfo
Type
UserInfo
packages a nickname along with the username and hsotname
if they are known in the current context.
Parser and printer
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.
Lenses
uiNick :: Functor f => (Identifier -> f Identifier) -> UserInfo -> f UserInfo Source #
Lens into userNick
field.