| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Web.Slack.Internal
Description
Internal things in slack-web. May be changed arbitrarily!
Synopsis
- data SlackConfig = SlackConfig {}
- data ResponseSlackError = ResponseSlackError Text
- newtype ResponseJSON a = ResponseJSON (Either ResponseSlackError a)
- mkSlackAuthenticateReq :: SlackConfig -> AuthenticatedRequest (AuthProtect "token")
- authenticateReq :: Text -> Request -> Request
- run :: ClientM (ResponseJSON a) -> Manager -> IO (Response a)
- unnestErrors :: Either ClientError (ResponseJSON a) -> Response a
Documentation
data SlackConfig Source #
Constructors
| SlackConfig | |
Fields | |
Instances
| HasManager SlackConfig Source # | |
Defined in Web.Slack.Classy Methods getManager :: SlackConfig -> Manager Source # | |
| HasToken SlackConfig Source # | |
Defined in Web.Slack.Classy Methods getToken :: SlackConfig -> Text Source # | |
data ResponseSlackError Source #
Constructors
| ResponseSlackError Text |
Instances
| Show ResponseSlackError Source # | |
Defined in Web.Slack.Internal Methods showsPrec :: Int -> ResponseSlackError -> ShowS # show :: ResponseSlackError -> String # showList :: [ResponseSlackError] -> ShowS # | |
| Eq ResponseSlackError Source # | |
Defined in Web.Slack.Internal Methods (==) :: ResponseSlackError -> ResponseSlackError -> Bool # (/=) :: ResponseSlackError -> ResponseSlackError -> Bool # | |
newtype ResponseJSON a Source #
Internal type!
Constructors
| ResponseJSON (Either ResponseSlackError a) |
Instances
| FromJSON a => FromJSON (ResponseJSON a) Source # | |
Defined in Web.Slack.Internal Methods parseJSON :: Value -> Parser (ResponseJSON a) # parseJSONList :: Value -> Parser [ResponseJSON a] # | |
mkSlackAuthenticateReq :: SlackConfig -> AuthenticatedRequest (AuthProtect "token") Source #
unnestErrors :: Either ClientError (ResponseJSON a) -> Response a Source #