github-tools-0.1.2: Various Github helper utilities.
Safe HaskellNone
LanguageHaskell2010

GitHub.Types.PayloadParser

Synopsis

Documentation

data Payload Source #

webhookPayloadParser :: Text -> Value -> Parser Payload Source #

Since the event type is included through different means (X-GitHub-Event header, or inline in the JSON object), it's not possible to make Event an instance of FromJSON. But if you know the type, you can use this parser.