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.
- 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
- msgText :: MessageBody -> Text
Client message type
data ClientMessage Source #
ClientMessage | |
|
Message body type
data MessageBody Source #
Client message operations
data IrcSummary Source #
msgSummary :: MessageBody -> IrcSummary Source #
Client message operations
msgText :: MessageBody -> Text Source #
Compute a searchable text representation of the message