Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Color
- data UserId
- data SlackTimestamp = SlackTimestamp {}
- mkSlackTimestamp :: UTCTime -> SlackTimestamp
- data HistoryReq = HistoryReq {}
- mkHistoryReq :: Text -> HistoryReq
- data HistoryRsp = HistoryRsp {}
- data Message = Message {}
- data MessageType = MessageTypeMessage
- data SlackClientError
- newtype SlackMessageText = SlackMessageText {}
Documentation
data SlackTimestamp Source #
Instances
data HistoryReq Source #
Instances
mkHistoryReq :: Text -> HistoryReq Source #
data HistoryRsp Source #
Instances
Message | |
|
Instances
Eq Message Source # | |
Show Message Source # | |
Generic Message Source # | |
FromJSON Message Source # | |
type Rep Message Source # | |
Defined in Web.Slack.Common type Rep Message = D1 (MetaData "Message" "Web.Slack.Common" "slack-web-0.2.0.6-5HiunlTlOEx1bhBblnlOEP" False) (C1 (MetaCons "Message" PrefixI True) ((S1 (MetaSel (Just "messageType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 MessageType) :*: S1 (MetaSel (Just "messageUser") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe UserId))) :*: (S1 (MetaSel (Just "messageText") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SlackMessageText) :*: S1 (MetaSel (Just "messageTs") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SlackTimestamp)))) |
data MessageType Source #
Instances
Eq MessageType Source # | |
Defined in Web.Slack.Common (==) :: MessageType -> MessageType -> Bool # (/=) :: MessageType -> MessageType -> Bool # | |
Show MessageType Source # | |
Defined in Web.Slack.Common showsPrec :: Int -> MessageType -> ShowS # show :: MessageType -> String # showList :: [MessageType] -> ShowS # | |
FromJSON MessageType Source # | |
Defined in Web.Slack.Common parseJSON :: Value -> Parser MessageType # parseJSONList :: Value -> Parser [MessageType] # |
data SlackClientError Source #
Errors that can be triggered by a slack request.
ServantError ServantError | errors from the network connection |
SlackError Text | errors returned by the slack API |
Instances
newtype SlackMessageText Source #
Message text in the format returned by Slack,
see https://api.slack.com/docs/message-formatting
Consider using messageToHtml
for displaying.