slack-api-0.12: Bindings to the Slack RTM API.

Safe HaskellNone
LanguageHaskell2010

Web.Slack.Types.Id

Documentation

type UserId = Id TUser Source #

type BotId = Id TBot Source #

type ChannelId = Id TChannel Source #

type FileId = Id TFile Source #

type CommentId = Id TComment Source #

type IMId = Id TIM Source #

type TeamId = Id TTeam Source #

newtype Id a Source #

Constructors

Id 

Fields

Instances

Eq (Id a) Source # 

Methods

(==) :: Id a -> Id a -> Bool #

(/=) :: Id a -> Id a -> Bool #

Ord (Id a) Source # 

Methods

compare :: Id a -> Id a -> Ordering #

(<) :: Id a -> Id a -> Bool #

(<=) :: Id a -> Id a -> Bool #

(>) :: Id a -> Id a -> Bool #

(>=) :: Id a -> Id a -> Bool #

max :: Id a -> Id a -> Id a #

min :: Id a -> Id a -> Id a #

Show (Id a) Source # 

Methods

showsPrec :: Int -> Id a -> ShowS #

show :: Id a -> String #

showList :: [Id a] -> ShowS #

Generic (Id a) Source # 

Associated Types

type Rep (Id a) :: * -> * #

Methods

from :: Id a -> Rep (Id a) x #

to :: Rep (Id a) x -> Id a #

ToJSON (Id a) Source # 

Methods

toJSON :: Id a -> Value

toEncoding :: Id a -> Encoding

toJSONList :: [Id a] -> Value

toEncodingList :: [Id a] -> Encoding

FromJSON (Id a) Source # 

Methods

parseJSON :: Value -> Parser (Id a)

parseJSONList :: Value -> Parser [Id a]

Hashable (Id a) Source # 

Methods

hashWithSalt :: Int -> Id a -> Int

hash :: Id a -> Int

type Rep (Id a) Source # 
type Rep (Id a) = D1 (MetaData "Id" "Web.Slack.Types.Id" "slack-api-0.12-5bXjjbyGgxpG4YrpslwyQ6" True) (C1 (MetaCons "Id" PrefixI True) (S1 (MetaSel (Just Symbol "_getId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

getId :: forall a a. Iso (Id a) (Id a) Text Text Source #