@hackage slack-web0.1.0
Bindings for the Slack web API
Categories
License
MIT
Maintainer
Juan Pedro Villa Isaza <jpvillaisaza@gmail.com>
Links
Versions
Installation
Tested Compilers
Dependencies (10)
- aeson >=1.1 && <1.2
- base >=4.9 && <4.10
- generics-sop >=0.2 && <0.3
- http-api-data >=0.3 && <0.4
- http-client >=0.5 && <0.6
- http-client-tls >=0.3 && <0.4 Show all…
Dependents (1)
@hackage/acme-everything
Haskell bindings for the Slack web API
Example
> import qualified Web.Slack as Slack
> import qualified Web.Slack.Api as Api
> manager <- Slack.mkManager
> :set -XRecordWildCards
> Slack.Cli{..} = Slack.mkCli
apiTest :: ...
authTest :: ...
channelsCreate :: ...
chatPostMessage :: ...
> Slack.run manager (apiTest Api.mkTestReq)
Right ...
> :set -XOverloadedStrings
> Slack.run manager (apiTest Api.mkTestReq { testReqFoo = Just "bar" })
Right ...