Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Web.Slack.Internal
Description
Internal things in slack-web. May be changed arbitrarily!
Synopsis
- data SlackConfig = SlackConfig {}
- 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 # |
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] # omittedField :: Maybe (ResponseJSON a) # | |
Show a => Show (ResponseJSON a) Source # | |
Defined in Web.Slack.Internal Methods showsPrec :: Int -> ResponseJSON a -> ShowS # show :: ResponseJSON a -> String # showList :: [ResponseJSON a] -> ShowS # |
mkSlackAuthenticateReq :: SlackConfig -> AuthenticatedRequest (AuthProtect "token") Source #
unnestErrors :: Either ClientError (ResponseJSON a) -> Response a Source #