slack-web-0.2.0.1: Bindings for the Slack web API

Safe HaskellNone
LanguageHaskell2010

Web.Slack.Common

Description

 

Synopsis

Documentation

data Color Source #

Instances

Eq Color Source # 

Methods

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

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

Ord Color Source # 

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 #

Show Color Source # 

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

Generic Color Source # 

Associated Types

type Rep Color :: * -> * #

Methods

from :: Color -> Rep Color x #

to :: Rep Color x -> Color #

FromJSON Color Source # 
type Rep Color Source # 
type Rep Color = D1 (MetaData "Color" "Web.Slack.Types" "slack-web-0.2.0.1-61ppcxJ306aDOsCthwTSeH" True) (C1 (MetaCons "Color" PrefixI True) (S1 (MetaSel (Just Symbol "unColor") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data UserId Source #

Instances

Eq UserId Source # 

Methods

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

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

Ord UserId Source # 
Show UserId Source # 
Generic UserId Source # 

Associated Types

type Rep UserId :: * -> * #

Methods

from :: UserId -> Rep UserId x #

to :: Rep UserId x -> UserId #

FromJSON UserId Source # 
type Rep UserId Source # 
type Rep UserId = D1 (MetaData "UserId" "Web.Slack.Types" "slack-web-0.2.0.1-61ppcxJ306aDOsCthwTSeH" True) (C1 (MetaCons "UserId" PrefixI True) (S1 (MetaSel (Just Symbol "unUserId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data HistoryReq Source #

data HistoryRsp Source #

Instances

data Message Source #

Constructors

Message 

Fields

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

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