| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Web.Slack.Common
Description
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 #
Constructors
| SlackTimestamp | |
Fields | |
Instances
data HistoryReq Source #
Constructors
| HistoryReq | |
Instances
mkHistoryReq :: Text -> HistoryReq Source #
data HistoryRsp Source #
Constructors
| HistoryRsp | |
Fields | |
Instances
| Eq HistoryRsp Source # | |
Defined in Web.Slack.Common | |
| Show HistoryRsp Source # | |
Defined in Web.Slack.Common Methods showsPrec :: Int -> HistoryRsp -> ShowS # show :: HistoryRsp -> String # showList :: [HistoryRsp] -> ShowS # | |
| Generic HistoryRsp Source # | |
Defined in Web.Slack.Common Associated Types type Rep HistoryRsp :: Type -> Type # | |
| FromJSON HistoryRsp Source # | |
Defined in Web.Slack.Common | |
| type Rep HistoryRsp Source # | |
Defined in Web.Slack.Common type Rep HistoryRsp = D1 (MetaData "HistoryRsp" "Web.Slack.Common" "slack-web-0.2.0.9-7QvndQw9IfxMI407mdiak" False) (C1 (MetaCons "HistoryRsp" PrefixI True) (S1 (MetaSel (Just "historyRspMessages") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Message]) :*: S1 (MetaSel (Just "historyRspHasMore") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))) | |
Constructors
| Message | |
Fields
| |
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.9-7QvndQw9IfxMI407mdiak" 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 #
Constructors
| MessageTypeMessage |
Instances
| Eq MessageType Source # | |
Defined in Web.Slack.Common | |
| Show MessageType Source # | |
Defined in Web.Slack.Common Methods showsPrec :: Int -> MessageType -> ShowS # show :: MessageType -> String # showList :: [MessageType] -> ShowS # | |
| FromJSON MessageType Source # | |
Defined in Web.Slack.Common | |
data SlackClientError Source #
Errors that can be triggered by a slack request.
Constructors
| 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.
Constructors
| SlackMessageText | |
Fields | |