github-types-0.2.1: Type definitions for objects used by the GitHub v3 API

Safe HaskellNone
LanguageHaskell2010

GitHub.Types.Events

Synopsis

Documentation

data Event Source #

All events which can be produced by GitHub.

See https://developer.github.com/v3/activity/events/

data Actor Source #

Constructors

Actor 

Fields

data Repo Source #

Constructors

Repo 

Fields

Instances

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.