slack-web: Bindings for the Slack web API

[ library, mit, web ] [ Propose Tags ] [ Report a vulnerability ]

Haskell bindings for the Slack web API.


[Skip to Readme]

Flags

Manual Flags

NameDescriptionDefault
cli

Build a CLI client for testing.

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0, 0.2.0, 0.2.0.1, 0.2.0.2, 0.2.0.3, 0.2.0.4, 0.2.0.5, 0.2.0.6, 0.2.0.7, 0.2.0.8, 0.2.0.9, 0.2.0.10, 0.2.0.11, 0.2.0.12, 0.2.1.0, 0.3.0.0, 0.3.0.1, 0.4.0.0, 1.5.0.0, 1.5.0.1, 1.6.0.0, 1.6.1.0, 2.0.1.0, 2.1.0.0, 2.2.0.0
Change log CHANGELOG.md
Dependencies aeson (>=2.0 && <2.3), base (>=4.11 && <4.22), base16-bytestring, butcher, bytestring, classy-prelude, containers, crypton, data-default-class, deepseq, either, errors, hashable, http-api-data (>=0.3 && <0.8), http-client (>=0.5 && <0.8), http-client-tls (>=0.3 && <0.4), megaparsec (>=5.0 && <10), monad-loops, mono-traversable, mtl, pretty-simple (>=4.1 && <4.2), refined, scientific, servant (>=0.16 && <0.21), servant-client (>=0.16 && <0.21), servant-client-core (>=0.16 && <0.21), slack-web, string-conversions, string-variants (>=0.1.0.1), text (>=1.2 && <1.3 || >=2.0 && <2.2), time, transformers, unordered-containers, vector [details]
Tested with ghc ==9.2 || ==9.4 || ==9.6 || ==9.8 || ==9.10
License MIT
Copyright 2017 Juan Pedro Villa Isaza, 2022 Mercury Technologies, Inc
Author Juan Pedro Villa Isaza <jpvillaisaza@gmail.com>, Jade Lovelace <software at lfcode dot ca>, Dennis Hennen <dennis@mercury.com>
Maintainer Jade Lovelace <software at lfcode dot ca>
Uploaded by jade at 2025-03-24T18:11:43Z
Revised Revision 1 made by jade at 2026-04-29T18:23:40Z
Category Web
Home page https://github.com/MercuryTechnologies/slack-web
Bug tracker https://github.com/MercuryTechnologies/slack-web/issues
Source repo head: git clone https://github.com/MercuryTechnologies/slack-web
Distributions LTSHaskell:2.2.0.0, Stackage:2.2.0.0
Reverse Dependencies 1 direct, 0 indirect [details]
Executables slack-web-cli
Downloads 9372 total (64 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2025-12-05 [all 2 reports]

Readme for slack-web-2.2.0.0

[back to package description]

Haskell bindings for the Slack web API

Example

> import qualified Web.Slack as Slack
> import qualified Web.Slack.Api as Api
> :set -XOverloadedStrings
> slackConfig <- Slack.mkSlackConfig token
> Slack.apiTest (Slack.slackConfigManager slackConfig) Api.mkTestReq
Right ...
> Slack.apiTest (Slack.slackConfigManager slackConfig) Api.mkTestReq { Api.testReqFoo = Just "bar" }
Right ...

Contributing

This repository provides a flake.nix file which offers pre-commit hooks and haskell-language-server. We use fourmolu for formatting, which is verified in CI.

To use the flake, run nix develop, which will get you cabal and everything else you need to work on slack-web.

Pull requests are welcome!

License

Licensed under the MIT license. See LICENSE.md.