github-webhook-handler alternatives and similar packages
Based on the "GitHub" category.
Alternatively, view github-webhook-handler alternatives based on common mentions on social networks and blogs.
Haskell types and instances for decoding GitHub webhook payloads.
A flexible Haskell API for querying the GitHub REST API
Do you think we are missing an alternative of github-webhook-handler or a related project?
GitHub WebHook Handler
This package provides a generic implementation of a GitHub WebHook Handler, abstracted over the differences of various Haskell web frameworks (Snap, Yesod, Scotty etc).
You probably want to use one of the bindings for the web framework you're using. If no implementation exists yet you can write it yourself, see further below how to get started with that.
How to write your own binding
The main data structure is
Handler m, which provides the
with configuration and framework-specific implementation of various functions
which the handler needs.
The type parameter
m is the monad which the handler uses. Almost each Haskell
web framework has its own monad, for example snap has
Snap, yesod has
etc. If in doubt, just use
Handler m for your web framework and then call
function attempts to handle the request. It will always invoke the action
hAction). It is up to you to send a proper response back to the
runHandler doesn't catch any exceptions. It is up to you to ensure
that those are caught and processed.
The snap binding can serve as an example.