Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Slack a = Slack {
- runSlackInternal :: EitherT SlackError (StateT SlackState IO) a
- runSlack :: Token -> Slack a -> IO (Either SlackError a)
- module Network.Slack.User
- module Network.Slack.Channel
- module Network.Slack.Message
Documentation
The Slack monad. It executes commands with the context of possible failure (malformed requests, Slack is down, etc...), and some internal state
Slack | |
|
runSlack :: Token -> Slack a -> IO (Either SlackError a) Source
Given an API token and a Slack command, it executes the command in the IO monad
module Network.Slack.User
module Network.Slack.Channel
module Network.Slack.Message