Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 #
Instances
HasManager SlackConfig Source # | |
Defined in Web.Slack.Classy getManager :: SlackConfig -> Manager Source # | |
HasToken SlackConfig Source # | |
Defined in Web.Slack.Classy getToken :: SlackConfig -> Text Source # |
data ResponseSlackError Source #
Instances
Show ResponseSlackError Source # | |
Defined in Web.Slack.Internal showsPrec :: Int -> ResponseSlackError -> ShowS # show :: ResponseSlackError -> String # showList :: [ResponseSlackError] -> ShowS # | |
Eq ResponseSlackError Source # | |
Defined in Web.Slack.Internal (==) :: ResponseSlackError -> ResponseSlackError -> Bool # (/=) :: ResponseSlackError -> ResponseSlackError -> Bool # |
newtype ResponseJSON a Source #
Internal type!
Instances
FromJSON a => FromJSON (ResponseJSON a) Source # | |
Defined in Web.Slack.Internal parseJSON :: Value -> Parser (ResponseJSON a) # parseJSONList :: Value -> Parser [ResponseJSON a] # |
mkSlackAuthenticateReq :: SlackConfig -> AuthenticatedRequest (AuthProtect "token") Source #
unnestErrors :: Either ClientError (ResponseJSON a) -> Response a Source #