Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data DirectMessage = DirectMessage {
- msgFrom :: ComposedIdentity
- msgPrev :: [Stored DirectMessage]
- msgTime :: ZonedTime
- msgText :: Text
- sendDirectMessage :: (Foldable f, Applicative f, MonadHead LocalState m, MonadError String m) => Identity f -> Text -> m (Stored DirectMessage)
- data DirectMessageAttributes = DirectMessageAttributes {}
- defaultDirectMessageAttributes :: DirectMessageAttributes
- data DirectMessageThreads
- toThreadList :: DirectMessageThreads -> [DirectMessageThread]
- data DirectMessageThread = DirectMessageThread {}
- threadToList :: DirectMessageThread -> [DirectMessage]
- messageThreadView :: [Stored MessageState] -> [DirectMessageThread]
- watchReceivedMessages :: Head LocalState -> (Stored DirectMessage -> IO ()) -> IO WatchedHead
- formatMessage :: TimeZone -> DirectMessage -> String
- formatDirectMessage :: TimeZone -> DirectMessage -> String
Documentation
data DirectMessage Source #
DirectMessage | |
|
Instances
sendDirectMessage :: (Foldable f, Applicative f, MonadHead LocalState m, MonadError String m) => Identity f -> Text -> m (Stored DirectMessage) Source #
data DirectMessageThreads Source #
Instances
SharedType DirectMessageThreads Source # | |
Mergeable DirectMessageThreads Source # | |
Defined in Erebos.Message | |
Eq DirectMessageThreads Source # | |
Defined in Erebos.Message (==) :: DirectMessageThreads -> DirectMessageThreads -> Bool # (/=) :: DirectMessageThreads -> DirectMessageThreads -> Bool # | |
type Component DirectMessageThreads Source # | |
Defined in Erebos.Message |
data DirectMessageThread Source #
messageThreadView :: [Stored MessageState] -> [DirectMessageThread] Source #
watchReceivedMessages :: Head LocalState -> (Stored DirectMessage -> IO ()) -> IO WatchedHead Source #
formatMessage :: TimeZone -> DirectMessage -> String Source #
Deprecated: use formatDirectMessage instead
formatDirectMessage :: TimeZone -> DirectMessage -> String Source #