Add definition module

This commit is contained in:
2019-12-26 13:00:47 +01:00
parent e3a495a778
commit 56d88310df
8 changed files with 164 additions and 30 deletions

View File

@ -7,12 +7,13 @@ and this project adheres to
[Haskell Package Versioning Policy](https://pvp.haskell.org/).
## [Unreleased]
### Added
- AST for the GraphQL schema.
### Changed
- Rename `AST.Definition` into `AST.ExecutableDefinition`.
TypeSystemDefinition and TypeSystemExtension can also be definitions.
- Define `AST.Definition` as
`newtype Definition = ExecutableDefinition ExecutableDefinition` for now. It
should be soon extended to contain missing definition types.
`AST.TypeSystemDefinition` and `AST.TypeSystemExtension` can also be
definitions.
### Removed
- `AST.Field`, `AST.InlineFragment` and `AST.FragmentSpread`.