Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Type definitions for the Slack files APIs. See https://api.slack.com/messaging/files.
Since: 1.6.0.0
Synopsis
- newtype FileId = FileId {}
- data FileMode
- data FileObjectVisible = FileObjectVisible {}
- data FileObject
Documentation
ID for a file, which looks something like F2147483862
.
Hosted | |
External | |
Snippet | |
Post | |
FileAccess | |
https://slack.com/help/articles/206819278-Send-emails-to-Slack Since: 1.6.1.0 | |
Other Text | Other file modes. Since: 1.6.1.0 |
Instances
FromJSON FileMode Source # | |
ToJSON FileMode Source # | |
Defined in Web.Slack.Files.Types | |
Generic FileMode Source # | |
Show FileMode Source # | |
Eq FileMode Source # | |
type Rep FileMode Source # | |
Defined in Web.Slack.Files.Types type Rep FileMode = D1 ('MetaData "FileMode" "Web.Slack.Files.Types" "slack-web-1.6.1.0-FTQ0nauOsvHFn0u85EClLm" 'False) ((C1 ('MetaCons "Hosted" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "External" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Snippet" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Post" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileAccess" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Email" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Other" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))) |
data FileObjectVisible Source #
Instances
FromJSON FileObjectVisible Source # | |
Defined in Web.Slack.Files.Types parseJSON :: Value -> Parser FileObjectVisible # parseJSONList :: Value -> Parser [FileObjectVisible] # | |
ToJSON FileObjectVisible Source # | |
Defined in Web.Slack.Files.Types toJSON :: FileObjectVisible -> Value # toEncoding :: FileObjectVisible -> Encoding # toJSONList :: [FileObjectVisible] -> Value # toEncodingList :: [FileObjectVisible] -> Encoding # | |
Show FileObjectVisible Source # | |
Defined in Web.Slack.Files.Types showsPrec :: Int -> FileObjectVisible -> ShowS # show :: FileObjectVisible -> String # showList :: [FileObjectVisible] -> ShowS # | |
Eq FileObjectVisible Source # | |
Defined in Web.Slack.Files.Types (==) :: FileObjectVisible -> FileObjectVisible -> Bool # (/=) :: FileObjectVisible -> FileObjectVisible -> Bool # |
data FileObject Source #
VisibleFileObject FileObjectVisible | File object is visible |
CheckFileInfo FileId | File object is in a shared channel so |
Instances
FromJSON FileObject Source # | |
Defined in Web.Slack.Files.Types parseJSON :: Value -> Parser FileObject # parseJSONList :: Value -> Parser [FileObject] # | |
ToJSON FileObject Source # | |
Defined in Web.Slack.Files.Types toJSON :: FileObject -> Value # toEncoding :: FileObject -> Encoding # toJSONList :: [FileObject] -> Value # toEncodingList :: [FileObject] -> Encoding # | |
Show FileObject Source # | |
Defined in Web.Slack.Files.Types showsPrec :: Int -> FileObject -> ShowS # show :: FileObject -> String # showList :: [FileObject] -> ShowS # | |
Eq FileObject Source # | |
Defined in Web.Slack.Files.Types (==) :: FileObject -> FileObject -> Bool # (/=) :: FileObject -> FileObject -> Bool # |