slack-0.1.0.0: Haskell API for interacting with Slack

Safe HaskellNone
LanguageHaskell2010

Network.Slack

Synopsis

Documentation

newtype Slack a Source

The Slack monad. It executes commands with the context of possible failure (malformed requests, Slack is down, etc...), and some internal state

Constructors

Slack 

Fields

runSlackInternal :: EitherT SlackError (StateT SlackState IO) a
 

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