| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Web.Slack.Chat
Synopsis
- data PostMsg = PostMsg {
- postMsgText :: Text
- postMsgParse :: Maybe Text
- postMsgLinkNames :: Maybe Bool
- postMsgAttachments :: Maybe Text
- postMsgUnfurlLinks :: Maybe Bool
- postMsgUnfurlMedia :: Maybe Bool
- postMsgUsername :: Maybe Text
- postMsgAsUser :: Maybe Bool
- postMsgIconUrl :: Maybe Text
- postMsgIconEmoji :: Maybe Emoji
- postMsgThreadTs :: Maybe Text
- postMsgReplyBroadcast :: Maybe Bool
- data PostMsgReq = PostMsgReq {
- postMsgReqChannel :: Text
- postMsgReqText :: Maybe Text
- postMsgReqParse :: Maybe Text
- postMsgReqLinkNames :: Maybe Bool
- postMsgReqAttachments :: Maybe Text
- postMsgReqBlocks :: Maybe Text
- postMsgReqUnfurlLinks :: Maybe Bool
- postMsgReqUnfurlMedia :: Maybe Bool
- postMsgReqUsername :: Maybe Text
- postMsgReqAsUser :: Maybe Bool
- postMsgReqIconUrl :: Maybe Text
- postMsgReqIconEmoji :: Maybe Emoji
- postMsgReqThreadTs :: Maybe Text
- postMsgReqReplyBroadcast :: Maybe Bool
- mkPostMsgReq :: Text -> Text -> PostMsgReq
- data PostMsgRsp = PostMsgRsp {}
- data UpdateReq = UpdateReq {}
- mkUpdateReq :: ConversationId -> Text -> UpdateReq
- data UpdateRsp = UpdateRsp {}
Documentation
Constructors
| PostMsg | |
Fields
| |
Instances
data PostMsgReq Source #
Constructors
| PostMsgReq | |
Fields
| |
Instances
| FromJSON PostMsgReq Source # | |||||
Defined in Web.Slack.Chat | |||||
| ToJSON PostMsgReq Source # | |||||
Defined in Web.Slack.Chat Methods toJSON :: PostMsgReq -> Value # toEncoding :: PostMsgReq -> Encoding # toJSONList :: [PostMsgReq] -> Value # toEncodingList :: [PostMsgReq] -> Encoding # omitField :: PostMsgReq -> Bool # | |||||
| Generic PostMsgReq Source # | |||||
Defined in Web.Slack.Chat Associated Types
| |||||
| Show PostMsgReq Source # | |||||
Defined in Web.Slack.Chat Methods showsPrec :: Int -> PostMsgReq -> ShowS # show :: PostMsgReq -> String # showList :: [PostMsgReq] -> ShowS # | |||||
| NFData PostMsgReq Source # | |||||
Defined in Web.Slack.Chat Methods rnf :: PostMsgReq -> () # | |||||
| Eq PostMsgReq Source # | |||||
Defined in Web.Slack.Chat | |||||
| ToForm PostMsgReq Source # | |||||
Defined in Web.Slack.Chat Methods toForm :: PostMsgReq -> Form # | |||||
| type Rep PostMsgReq Source # | |||||
Defined in Web.Slack.Chat type Rep PostMsgReq = D1 ('MetaData "PostMsgReq" "Web.Slack.Chat" "slack-web-2.2.0.0-2X4wKOtrXI0LMO4H3hWcQt" 'False) (C1 ('MetaCons "PostMsgReq" 'PrefixI 'True) (((S1 ('MetaSel ('Just "postMsgReqChannel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "postMsgReqText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "postMsgReqParse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "postMsgReqLinkNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "postMsgReqAttachments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "postMsgReqBlocks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "postMsgReqUnfurlLinks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))) :*: ((S1 ('MetaSel ('Just "postMsgReqUnfurlMedia") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "postMsgReqUsername") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "postMsgReqAsUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "postMsgReqIconUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "postMsgReqIconEmoji") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Emoji))) :*: (S1 ('MetaSel ('Just "postMsgReqThreadTs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "postMsgReqReplyBroadcast") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))))) | |||||
mkPostMsgReq :: Text -> Text -> PostMsgReq Source #
data PostMsgRsp Source #
Constructors
| PostMsgRsp | |
Fields | |
Instances
| FromJSON PostMsgRsp Source # | |||||
Defined in Web.Slack.Chat | |||||
| Generic PostMsgRsp Source # | |||||
Defined in Web.Slack.Chat Associated Types
| |||||
| Show PostMsgRsp Source # | |||||
Defined in Web.Slack.Chat Methods showsPrec :: Int -> PostMsgRsp -> ShowS # show :: PostMsgRsp -> String # showList :: [PostMsgRsp] -> ShowS # | |||||
| NFData PostMsgRsp Source # | |||||
Defined in Web.Slack.Chat Methods rnf :: PostMsgRsp -> () # | |||||
| Eq PostMsgRsp Source # | |||||
Defined in Web.Slack.Chat | |||||
| type Rep PostMsgRsp Source # | |||||
Defined in Web.Slack.Chat type Rep PostMsgRsp = D1 ('MetaData "PostMsgRsp" "Web.Slack.Chat" "slack-web-2.2.0.0-2X4wKOtrXI0LMO4H3hWcQt" 'False) (C1 ('MetaCons "PostMsgRsp" 'PrefixI 'True) (S1 ('MetaSel ('Just "postMsgRspTs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "postMsgRspMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PostMsg))) | |||||
Constructors
| UpdateReq | |
Fields
| |
Instances
| Generic UpdateReq Source # | |||||
Defined in Web.Slack.Chat Associated Types
| |||||
| Show UpdateReq Source # | |||||
| Eq UpdateReq Source # | |||||
| ToForm UpdateReq Source # | |||||
Defined in Web.Slack.Chat | |||||
| type Rep UpdateReq Source # | |||||
Defined in Web.Slack.Chat type Rep UpdateReq = D1 ('MetaData "UpdateReq" "Web.Slack.Chat" "slack-web-2.2.0.0-2X4wKOtrXI0LMO4H3hWcQt" 'False) (C1 ('MetaCons "UpdateReq" 'PrefixI 'True) (((S1 ('MetaSel ('Just "updateReqChannel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConversationId) :*: S1 ('MetaSel ('Just "updateReqTs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "updateReqAsUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "updateReqAttachments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "updateReqLinkNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "updateReqMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "updateReqParse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "updateReqReplyBroadcast") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "updateReqText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))))) | |||||
mkUpdateReq :: ConversationId -> Text -> UpdateReq Source #
Constructors
| UpdateRsp | |
Fields | |
Instances
| FromJSON UpdateRsp Source # | |||||
Defined in Web.Slack.Chat | |||||
| Generic UpdateRsp Source # | |||||
Defined in Web.Slack.Chat Associated Types
| |||||
| Show UpdateRsp Source # | |||||
| Eq UpdateRsp Source # | |||||
| type Rep UpdateRsp Source # | |||||
Defined in Web.Slack.Chat type Rep UpdateRsp = D1 ('MetaData "UpdateRsp" "Web.Slack.Chat" "slack-web-2.2.0.0-2X4wKOtrXI0LMO4H3hWcQt" 'False) (C1 ('MetaCons "UpdateRsp" 'PrefixI 'True) (S1 ('MetaSel ('Just "updateRspChannel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConversationId) :*: (S1 ('MetaSel ('Just "updateRspTs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "updateRspText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) | |||||