slack-web-1.6.1.0: Bindings for the Slack web API
Safe HaskellSafe-Inferred
LanguageHaskell2010

Web.Slack.Common

Description

 
Synopsis

Documentation

newtype Color Source #

Constructors

Color 

Fields

Instances

Instances details
FromJSON Color Source # 
Instance details

Defined in Web.Slack.Types

ToJSON Color Source # 
Instance details

Defined in Web.Slack.Types

Generic Color Source # 
Instance details

Defined in Web.Slack.Types

Associated Types

type Rep Color :: Type -> Type #

Methods

from :: Color -> Rep Color x #

to :: Rep Color x -> Color #

Show Color Source # 
Instance details

Defined in Web.Slack.Types

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

NFData Color Source # 
Instance details

Defined in Web.Slack.Types

Methods

rnf :: Color -> () #

Eq Color Source # 
Instance details

Defined in Web.Slack.Types

Methods

(==) :: Color -> Color -> Bool #

(/=) :: Color -> Color -> Bool #

Ord Color Source # 
Instance details

Defined in Web.Slack.Types

Methods

compare :: Color -> Color -> Ordering #

(<) :: Color -> Color -> Bool #

(<=) :: Color -> Color -> Bool #

(>) :: Color -> Color -> Bool #

(>=) :: Color -> Color -> Bool #

max :: Color -> Color -> Color #

min :: Color -> Color -> Color #

Hashable Color Source # 
Instance details

Defined in Web.Slack.Types

Methods

hashWithSalt :: Int -> Color -> Int #

hash :: Color -> Int #

type Rep Color Source # 
Instance details

Defined in Web.Slack.Types

type Rep Color = D1 ('MetaData "Color" "Web.Slack.Types" "slack-web-1.6.1.0-FTQ0nauOsvHFn0u85EClLm" 'True) (C1 ('MetaCons "Color" 'PrefixI 'True) (S1 ('MetaSel ('Just "unColor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype UserId Source #

Constructors

UserId 

Fields

Instances

Instances details
FromJSON UserId Source # 
Instance details

Defined in Web.Slack.Types

ToJSON UserId Source # 
Instance details

Defined in Web.Slack.Types

Generic UserId Source # 
Instance details

Defined in Web.Slack.Types

Associated Types

type Rep UserId :: Type -> Type #

Methods

from :: UserId -> Rep UserId x #

to :: Rep UserId x -> UserId #

Show UserId Source # 
Instance details

Defined in Web.Slack.Types

NFData UserId Source # 
Instance details

Defined in Web.Slack.Types

Methods

rnf :: UserId -> () #

Eq UserId Source # 
Instance details

Defined in Web.Slack.Types

Methods

(==) :: UserId -> UserId -> Bool #

(/=) :: UserId -> UserId -> Bool #

Ord UserId Source # 
Instance details

Defined in Web.Slack.Types

Hashable UserId Source # 
Instance details

Defined in Web.Slack.Types

Methods

hashWithSalt :: Int -> UserId -> Int #

hash :: UserId -> Int #

ToHttpApiData UserId Source # 
Instance details

Defined in Web.Slack.Types

type Rep UserId Source # 
Instance details

Defined in Web.Slack.Types

type Rep UserId = D1 ('MetaData "UserId" "Web.Slack.Types" "slack-web-1.6.1.0-FTQ0nauOsvHFn0u85EClLm" 'True) (C1 ('MetaCons "UserId" 'PrefixI 'True) (S1 ('MetaSel ('Just "unUserId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

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

Constructors

ConversationId 

Instances

Instances details
FromJSON ConversationId Source # 
Instance details

Defined in Web.Slack.Types

ToJSON ConversationId Source # 
Instance details

Defined in Web.Slack.Types

Generic ConversationId Source # 
Instance details

Defined in Web.Slack.Types

Associated Types

type Rep ConversationId :: Type -> Type #

Show ConversationId Source # 
Instance details

Defined in Web.Slack.Types

NFData ConversationId Source # 
Instance details

Defined in Web.Slack.Types

Methods

rnf :: ConversationId -> () #

Eq ConversationId Source # 
Instance details

Defined in Web.Slack.Types

Ord ConversationId Source # 
Instance details

Defined in Web.Slack.Types

Hashable ConversationId Source # 
Instance details

Defined in Web.Slack.Types

ToHttpApiData ConversationId Source # 
Instance details

Defined in Web.Slack.Types

type Rep ConversationId Source # 
Instance details

Defined in Web.Slack.Types

type Rep ConversationId = D1 ('MetaData "ConversationId" "Web.Slack.Types" "slack-web-1.6.1.0-FTQ0nauOsvHFn0u85EClLm" 'True) (C1 ('MetaCons "ConversationId" 'PrefixI 'True) (S1 ('MetaSel ('Just "unConversationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype TeamId Source #

Constructors

TeamId 

Fields

Instances

Instances details
FromJSON TeamId Source # 
Instance details

Defined in Web.Slack.Types

ToJSON TeamId Source # 
Instance details

Defined in Web.Slack.Types

Generic TeamId Source # 
Instance details

Defined in Web.Slack.Types

Associated Types

type Rep TeamId :: Type -> Type #

Methods

from :: TeamId -> Rep TeamId x #

to :: Rep TeamId x -> TeamId #

Show TeamId Source # 
Instance details

Defined in Web.Slack.Types

NFData TeamId Source # 
Instance details

Defined in Web.Slack.Types

Methods

rnf :: TeamId -> () #

Eq TeamId Source # 
Instance details

Defined in Web.Slack.Types

Methods

(==) :: TeamId -> TeamId -> Bool #

(/=) :: TeamId -> TeamId -> Bool #

Ord TeamId Source # 
Instance details

Defined in Web.Slack.Types

Hashable TeamId Source # 
Instance details

Defined in Web.Slack.Types

Methods

hashWithSalt :: Int -> TeamId -> Int #

hash :: TeamId -> Int #

ToHttpApiData TeamId Source # 
Instance details

Defined in Web.Slack.Types

type Rep TeamId Source # 
Instance details

Defined in Web.Slack.Types

type Rep TeamId = D1 ('MetaData "TeamId" "Web.Slack.Types" "slack-web-1.6.1.0-FTQ0nauOsvHFn0u85EClLm" 'True) (C1 ('MetaCons "TeamId" 'PrefixI 'True) (S1 ('MetaSel ('Just "unTeamId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype Cursor Source #

Constructors

Cursor 

Fields

Instances

Instances details
FromJSON Cursor Source # 
Instance details

Defined in Web.Slack.Pager.Types

ToJSON Cursor Source # 
Instance details

Defined in Web.Slack.Pager.Types

Generic Cursor Source # 
Instance details

Defined in Web.Slack.Pager.Types

Associated Types

type Rep Cursor :: Type -> Type #

Methods

from :: Cursor -> Rep Cursor x #

to :: Rep Cursor x -> Cursor #

Show Cursor Source # 
Instance details

Defined in Web.Slack.Pager.Types

NFData Cursor Source # 
Instance details

Defined in Web.Slack.Pager.Types

Methods

rnf :: Cursor -> () #

Eq Cursor Source # 
Instance details

Defined in Web.Slack.Pager.Types

Methods

(==) :: Cursor -> Cursor -> Bool #

(/=) :: Cursor -> Cursor -> Bool #

Hashable Cursor Source # 
Instance details

Defined in Web.Slack.Pager.Types

Methods

hashWithSalt :: Int -> Cursor -> Int #

hash :: Cursor -> Int #

ToHttpApiData Cursor Source # 
Instance details

Defined in Web.Slack.Pager.Types

type Rep Cursor Source # 
Instance details

Defined in Web.Slack.Pager.Types

type Rep Cursor = D1 ('MetaData "Cursor" "Web.Slack.Pager.Types" "slack-web-1.6.1.0-FTQ0nauOsvHFn0u85EClLm" 'True) (C1 ('MetaCons "Cursor" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCursor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data SlackTimestamp Source #

Instances

Instances details
FromJSON SlackTimestamp Source # 
Instance details

Defined in Web.Slack.Types

ToJSON SlackTimestamp Source # 
Instance details

Defined in Web.Slack.Types

Generic SlackTimestamp Source # 
Instance details

Defined in Web.Slack.Types

Associated Types

type Rep SlackTimestamp :: Type -> Type #

Show SlackTimestamp Source # 
Instance details

Defined in Web.Slack.Types

NFData SlackTimestamp Source # 
Instance details

Defined in Web.Slack.Types

Methods

rnf :: SlackTimestamp -> () #

Eq SlackTimestamp Source # 
Instance details

Defined in Web.Slack.Types

Ord SlackTimestamp Source # 
Instance details

Defined in Web.Slack.Types

ToHttpApiData SlackTimestamp Source # 
Instance details

Defined in Web.Slack.Types

type Rep SlackTimestamp Source # 
Instance details

Defined in Web.Slack.Types

type Rep SlackTimestamp = D1 ('MetaData "SlackTimestamp" "Web.Slack.Types" "slack-web-1.6.1.0-FTQ0nauOsvHFn0u85EClLm" 'False) (C1 ('MetaCons "SlackTimestamp" 'PrefixI 'True) (S1 ('MetaSel ('Just "slackTimestampTs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "slackTimestampTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)))

timestampFromText :: Text -> Either String SlackTimestamp Source #

Convert timestamp texts e.g. "1595719220.011100" into SlackTimestamp

data Message Source #

Constructors

Message 

Fields

Instances

Instances details
FromJSON Message Source # 
Instance details

Defined in Web.Slack.Common

ToJSON Message Source # 
Instance details

Defined in Web.Slack.Common

Generic Message Source # 
Instance details

Defined in Web.Slack.Common

Associated Types

type Rep Message :: Type -> Type #

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

Show Message Source # 
Instance details

Defined in Web.Slack.Common

NFData Message Source # 
Instance details

Defined in Web.Slack.Common

Methods

rnf :: Message -> () #

Eq Message Source # 
Instance details

Defined in Web.Slack.Common

Methods

(==) :: Message -> Message -> Bool #

(/=) :: Message -> Message -> Bool #

type Rep Message Source # 
Instance details

Defined in Web.Slack.Common

data MessageType Source #

Constructors

MessageTypeMessage 

Instances

Instances details
FromJSON MessageType Source # 
Instance details

Defined in Web.Slack.Common

ToJSON MessageType Source # 
Instance details

Defined in Web.Slack.Common

Generic MessageType Source # 
Instance details

Defined in Web.Slack.Common

Associated Types

type Rep MessageType :: Type -> Type #

Show MessageType Source # 
Instance details

Defined in Web.Slack.Common

NFData MessageType Source # 
Instance details

Defined in Web.Slack.Common

Methods

rnf :: MessageType -> () #

Eq MessageType Source # 
Instance details

Defined in Web.Slack.Common

type Rep MessageType Source # 
Instance details

Defined in Web.Slack.Common

type Rep MessageType = D1 ('MetaData "MessageType" "Web.Slack.Common" "slack-web-1.6.1.0-FTQ0nauOsvHFn0u85EClLm" 'False) (C1 ('MetaCons "MessageTypeMessage" 'PrefixI 'False) (U1 :: Type -> Type))

data SlackClientError Source #

Errors that can be triggered by a slack request.

Constructors

ServantError ClientError

errors from the network connection

SlackError Text

errors returned by the slack API

Instances

Instances details
Exception SlackClientError Source # 
Instance details

Defined in Web.Slack.Common

Generic SlackClientError Source # 
Instance details

Defined in Web.Slack.Common

Associated Types

type Rep SlackClientError :: Type -> Type #

Show SlackClientError Source # 
Instance details

Defined in Web.Slack.Common

NFData SlackClientError Source # 
Instance details

Defined in Web.Slack.Common

Methods

rnf :: SlackClientError -> () #

Eq SlackClientError Source # 
Instance details

Defined in Web.Slack.Common

type Rep SlackClientError Source # 
Instance details

Defined in Web.Slack.Common

type Rep SlackClientError = D1 ('MetaData "SlackClientError" "Web.Slack.Common" "slack-web-1.6.1.0-FTQ0nauOsvHFn0u85EClLm" 'False) (C1 ('MetaCons "ServantError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ClientError)) :+: C1 ('MetaCons "SlackError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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 

Instances

Instances details
FromJSON SlackMessageText Source # 
Instance details

Defined in Web.Slack.Types

ToJSON SlackMessageText Source # 
Instance details

Defined in Web.Slack.Types

Generic SlackMessageText Source # 
Instance details

Defined in Web.Slack.Types

Associated Types

type Rep SlackMessageText :: Type -> Type #

Show SlackMessageText Source # 
Instance details

Defined in Web.Slack.Types

NFData SlackMessageText Source # 
Instance details

Defined in Web.Slack.Types

Methods

rnf :: SlackMessageText -> () #

Eq SlackMessageText Source # 
Instance details

Defined in Web.Slack.Types

Ord SlackMessageText Source # 
Instance details

Defined in Web.Slack.Types

Hashable SlackMessageText Source # 
Instance details

Defined in Web.Slack.Types

type Rep SlackMessageText Source # 
Instance details

Defined in Web.Slack.Types

type Rep SlackMessageText = D1 ('MetaData "SlackMessageText" "Web.Slack.Types" "slack-web-1.6.1.0-FTQ0nauOsvHFn0u85EClLm" 'True) (C1 ('MetaCons "SlackMessageText" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSlackMessageText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))