Copyright | (c) Eric Mertens 2016 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
This module provides the type used to track messages just before they are added to a window.
Synopsis
- data ClientMessage = ClientMessage {
- _msgNetwork :: !Text
- _msgBody :: !MessageBody
- _msgTime :: !ZonedTime
- msgNetwork :: Lens' ClientMessage Text
- msgBody :: Lens' ClientMessage MessageBody
- msgTime :: Lens' ClientMessage ZonedTime
- data MessageBody
- _IrcBody :: Prism' MessageBody IrcMsg
- _ErrorBody :: Prism' MessageBody Text
- _NormalBody :: Prism' MessageBody Text
- data IrcSummary
- msgSummary :: MessageBody -> IrcSummary
- summaryActor :: IrcSummary -> Maybe Identifier
- data QuitKind
- msgText :: MessageBody -> Text
Client message type
data ClientMessage Source #
ClientMessage | |
|
Message body type
data MessageBody Source #
Client message operations
data IrcSummary Source #
JoinSummary !Identifier | |
QuitSummary !Identifier !QuitKind | |
PartSummary !Identifier | |
NickSummary !Identifier !Identifier | |
ReplySummary !ReplyCode | |
ChatSummary !UserInfo | |
CtcpSummary !Identifier | |
ChngSummary !Identifier | Chghost command |
AcctSummary !Identifier | Account command |
NoSummary |
Instances
Eq IrcSummary Source # | |
Defined in Client.Message (==) :: IrcSummary -> IrcSummary -> Bool # (/=) :: IrcSummary -> IrcSummary -> Bool # | |
Show IrcSummary Source # | |
Defined in Client.Message showsPrec :: Int -> IrcSummary -> ShowS # show :: IrcSummary -> String # showList :: [IrcSummary] -> ShowS # |
msgSummary :: MessageBody -> IrcSummary Source #
summaryActor :: IrcSummary -> Maybe Identifier Source #
Quit message details
NormalQuit | User quit |
MassQuit | Mass event like a netsplit |
Client message operations
msgText :: MessageBody -> Text Source #
Compute a searchable text representation of the message