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

Safe HaskellNone
LanguageHaskell2010

Web.Slack.Types.File

Documentation

data Mode Source #

Constructors

Hosted 
External 
Snippet 
Post 

Instances

Show Mode Source # 

Methods

showsPrec :: Int -> Mode -> ShowS #

show :: Mode -> String #

showList :: [Mode] -> ShowS #

FromJSON Mode Source # 

Methods

parseJSON :: Value -> Parser Mode

parseJSONList :: Value -> Parser [Mode]

data Preview Source #

Constructors

Preview 

Fields

Instances

Show Preview Source # 
FromJSON Preview Source # 

Methods

parseJSON :: Value -> Parser Preview

parseJSONList :: Value -> Parser [Preview]

data FileUrl Source #

Constructors

URL 

Fields

Instances

Show FileUrl Source # 
FromJSON FileUrl Source # 

Methods

parseJSON :: Value -> Parser FileUrl

parseJSONList :: Value -> Parser [FileUrl]

data Thumbnail Source #

Constructors

Thumbnail 

Instances

Show Thumbnail Source # 
FromJSON Thumbnail Source # 

Methods

parseJSON :: Value -> Parser Thumbnail

parseJSONList :: Value -> Parser [Thumbnail]

filetype :: Lens' File Text Source #

fileTitle :: Lens' File Text Source #

filePrettyType :: Lens' File Text Source #

fileName :: Lens' File (Maybe Text) Source #

fileMime :: Lens' File Text Source #

private :: Lens' FileUrl Text Source #

previewText :: Lens' Preview Text Source #