Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Color = Color {}
- newtype UserId = UserId {}
- newtype ConversationId = ConversationId {}
- newtype TeamId = TeamId {}
- newtype Cursor = Cursor {}
- data SlackTimestamp = SlackTimestamp {}
- mkSlackTimestamp :: UTCTime -> SlackTimestamp
- timestampFromText :: Text -> Either String SlackTimestamp
- newtype SlackMessageText = SlackMessageText {}
Documentation
Instances
FromJSON Color Source # | |
ToJSON Color Source # | |
Defined in Web.Slack.Types | |
Generic Color Source # | |
Show Color Source # | |
NFData Color Source # | |
Defined in Web.Slack.Types | |
Eq Color Source # | |
Ord Color Source # | |
Hashable Color Source # | |
Defined in Web.Slack.Types | |
type Rep Color Source # | |
Defined in Web.Slack.Types |
Instances
FromJSON UserId Source # | |
ToJSON UserId Source # | |
Defined in Web.Slack.Types | |
Generic UserId Source # | |
Show UserId Source # | |
NFData UserId Source # | |
Defined in Web.Slack.Types | |
Eq UserId Source # | |
Ord UserId Source # | |
Hashable UserId Source # | |
Defined in Web.Slack.Types | |
ToHttpApiData UserId Source # | |
Defined in Web.Slack.Types toUrlPiece :: UserId -> Text # toEncodedUrlPiece :: UserId -> Builder # toHeader :: UserId -> ByteString # toQueryParam :: UserId -> Text # | |
type Rep UserId Source # | |
Defined in Web.Slack.Types |
newtype ConversationId Source #
Common identifier for every type of Conversation
.
Unique to the team which the conversation belongs to.
Ord to allow it to be a key of a Map
Instances
Instances
FromJSON TeamId Source # | |
ToJSON TeamId Source # | |
Defined in Web.Slack.Types | |
Generic TeamId Source # | |
Show TeamId Source # | |
NFData TeamId Source # | |
Defined in Web.Slack.Types | |
Eq TeamId Source # | |
Ord TeamId Source # | |
Hashable TeamId Source # | |
Defined in Web.Slack.Types | |
ToHttpApiData TeamId Source # | |
Defined in Web.Slack.Types toUrlPiece :: TeamId -> Text # toEncodedUrlPiece :: TeamId -> Builder # toHeader :: TeamId -> ByteString # toQueryParam :: TeamId -> Text # | |
type Rep TeamId Source # | |
Defined in Web.Slack.Types |
Instances
FromJSON Cursor Source # | |
ToJSON Cursor Source # | |
Defined in Web.Slack.Pager.Types | |
Generic Cursor Source # | |
Show Cursor Source # | |
NFData Cursor Source # | |
Defined in Web.Slack.Pager.Types | |
Eq Cursor Source # | |
Hashable Cursor Source # | |
Defined in Web.Slack.Pager.Types | |
ToHttpApiData Cursor Source # | |
Defined in Web.Slack.Pager.Types toUrlPiece :: Cursor -> Text # toEncodedUrlPiece :: Cursor -> Builder # toHeader :: Cursor -> ByteString # toQueryParam :: Cursor -> Text # | |
type Rep Cursor Source # | |
Defined in Web.Slack.Pager.Types |
data SlackTimestamp Source #
Instances
timestampFromText :: Text -> Either String SlackTimestamp Source #
Convert timestamp texts e.g. "1595719220.011100" into SlackTimestamp
newtype SlackMessageText Source #
Message text in the format returned by Slack,
see https://api.slack.com/docs/message-formatting
Consider using messageToHtml
for displaying.