Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mercurytechnologies/slack-web
Haskell bindings for the Slack web API
https://github.com/mercurytechnologies/slack-web
haskell servant slack
Last synced: 5 days ago
JSON representation
Haskell bindings for the Slack web API
- Host: GitHub
- URL: https://github.com/mercurytechnologies/slack-web
- Owner: MercuryTechnologies
- License: mit
- Created: 2017-02-27T20:18:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-01T03:04:09.000Z (about 2 months ago)
- Last Synced: 2024-12-16T15:27:27.340Z (10 days ago)
- Topics: haskell, servant, slack
- Language: Haskell
- Homepage:
- Size: 251 KB
- Stars: 33
- Watchers: 49
- Forks: 18
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Haskell bindings for the Slack web API
- Hackage:
- 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](LICENSE.md).