Commit Graph

22 Commits

Author SHA1 Message Date
9021f3a25d
Encode input object types 2023-01-10 09:53:18 +01:00
025331a9ee
Encode enums 2023-01-09 20:56:21 +01:00
ab4808c44d
Encode unions 2023-01-08 17:33:25 +01:00
70dedb6911
Encode interfaces (2018) 2023-01-02 10:30:37 +01:00
a96d4e6ef3
Add Semigroup and Monoid instances for Description 2022-12-27 10:38:08 +01:00
3ce6e7da46
Encode schema definitions 2022-12-25 16:38:00 +01:00
bf2e4925b4
Add operation type encoder 2022-10-02 11:38:53 +02:00
fbfbb3e73f
Remove raw-strings-qq 2021-09-23 08:23:38 +02:00
56b63f1c3e Validate input object field names 2020-09-30 05:14:52 +02:00
3e393004ae Validate all variables are defined 2020-09-21 07:28:40 +02:00
4c10ce9204 Use Seq as base monad in the validator
It is more natural to implement the logic: try to apply each rule to
each node.
2020-09-15 08:06:07 +02:00
c2c57b6363 Validate all fragments are used 2020-09-09 17:04:31 +02:00
d327d9d1ce Validate fragment spread type existence 2020-09-05 10:00:58 +02:00
7355533268 Validate single root field in subscriptions 2020-08-25 21:03:42 +02:00
Dmitrii Skurikhin
2760bd8ee1 Don't encode controls as block strings
Fixes #39.

String containing control sequences should be encoded as simple strings
even if they contain newlines, since the block strings can contain only
SourceCharacters.
2020-04-10 11:19:36 +02:00
Dmitrii Skurikhin
30d6a0a58d encode null value as "null" 2020-03-31 10:04:34 +03:00
fdf5914626 Move AST to AST.Document 2019-12-28 07:07:58 +01:00
62f3c34bfe Replace AST.Selection data constructors 2019-12-25 06:45:29 +01:00
b215e1a4a7 Pretify multi-line string arguments as block strings
Fixes #10.
2019-12-21 09:25:05 +01:00
1e55f17e7e Encode Unicode. Fix #34 2019-12-20 07:58:09 +01:00
9a5d54c035 Escape non-source characters in the encoder 2019-12-19 06:59:27 +01:00
73fc334bf8 Move related modules to Language.GraphQL.AST
Fixes #18.

- `Language.GraphQL.Encoder` moved to `Language.GraphQL.AST.Encoder`.
- `Language.GraphQL.Parser` moved to `Language.GraphQL.AST.Parser`.
- `Language.GraphQL.Lexer` moved to `Language.GraphQL.AST.Lexer`.
- All `Language.GraphQL.AST.Value` data constructor prefixes were removed. The
  module should be imported qualified.
- All `Language.GraphQL.AST.Core.Value` data constructor prefixes were removed.
  The module should be imported qualified.
- `Language.GraphQL.AST.Transform` is now isn't exposed publically anymore.
2019-11-03 11:00:18 +01:00