Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data IrcMessage = IrcMessage {
- _mesgType :: !IrcMessageType
- _mesgSender :: !UserInfo
- _mesgStamp :: !UTCTime
- _mesgMe :: !Bool
- _mesgModes :: String
- _mesgStatus :: String
- data IrcMessageType
- = PrivMsgType Text
- | NoticeMsgType Text
- | ActionMsgType Text
- | AwayMsgType Text
- | JoinMsgType
- | KickMsgType Identifier Text
- | PartMsgType Text
- | QuitMsgType Text
- | NickMsgType Identifier
- | TopicMsgType Text
- | ErrorMsgType Text
- | ErrMsgType IrcError
- | ModeMsgType Bool Char ByteString
- | InviteMsgType
- | KnockMsgType
- | CallerIdMsgType
- | CallerIdDeliveredMsgType
- | CtcpReqMsgType ByteString ByteString
- | CtcpRspMsgType ByteString ByteString
- mesgType :: Lens' IrcMessage IrcMessageType
- mesgSender :: Lens' IrcMessage UserInfo
- mesgStamp :: Lens' IrcMessage UTCTime
- mesgStatus :: Lens' IrcMessage String
- mesgMe :: Lens' IrcMessage Bool
- mesgModes :: Lens' IrcMessage String
- defaultIrcMessage :: IrcMessage
- _PrivMsgType :: Prism' IrcMessageType Text
- _NoticeMsgType :: Prism' IrcMessageType Text
- _ActionMsgType :: Prism' IrcMessageType Text
- _AwayMsgType :: Prism' IrcMessageType Text
- _JoinMsgType :: Prism' IrcMessageType ()
- _KickMsgType :: Prism' IrcMessageType (Identifier, Text)
- _PartMsgType :: Prism' IrcMessageType Text
- _QuitMsgType :: Prism' IrcMessageType Text
- _NickMsgType :: Prism' IrcMessageType Identifier
- _TopicMsgType :: Prism' IrcMessageType Text
- _ErrorMsgType :: Prism' IrcMessageType Text
- _ErrMsgType :: Prism' IrcMessageType IrcError
- _ModeMsgType :: Prism' IrcMessageType (Bool, Char, ByteString)
- _InviteMsgType :: Prism' IrcMessageType ()
- _KnockMsgType :: Prism' IrcMessageType ()
- _CallerIdMsgType :: Prism' IrcMessageType ()
- _CallerIdDeliveredMsgType :: Prism' IrcMessageType ()
- _CtcpReqMsgType :: Prism' IrcMessageType (ByteString, ByteString)
- _CtcpRspMsgType :: Prism' IrcMessageType (ByteString, ByteString)
High-level IRC events
data IrcMessage Source #
IrcMessage
represents a high-level event to be communicated out
to the library user when something changes on a connection.
IrcMessage | |
|
data IrcMessageType Source #
Event types and associated fields used by IrcMessage
.
Prisms
_JoinMsgType :: Prism' IrcMessageType () Source #
_KnockMsgType :: Prism' IrcMessageType () Source #