Commit Graph

142 Commits

Author SHA1 Message Date
Eugen Wissner f54e9451d2 Release 0.5.0.0 2019-08-14 08:49:07 +02:00
Eugen Wissner 045b6d15fb Escape special characters in the encoded strings
Fixes #2.
2019-08-13 07:24:05 +02:00
Eugen Wissner 6604fba7f4 Update stack snapshot to 14.0 2019-08-12 07:25:40 +02:00
Eugen Wissner a3354e7f58 Make all encoder functions return lazy text 2019-08-05 09:00:11 +02:00
Eugen Wissner f9dd363457 Provide more information in the REAME
Provide more information and documentation references in the README.
2019-08-04 12:38:01 +02:00
Eugen Wissner 7a8a90aba8 Implement indentation in the encoder 2019-08-03 23:57:27 +02:00
Eugen Wissner 989e418cc2 Put spaces between tokens in the pretty printer 2019-08-02 13:52:51 +02:00
Eugen Wissner 4812c8f039 Introduce formatter type for the encoder
... to distinguish between minified and pretty printing.
2019-07-31 05:40:17 +02:00
Eugen Wissner d690d22ce8 Test the encoder with the unminified document 2019-07-27 07:31:09 +02:00
Eugen Wissner 15568a3b99 Implement multiple operation support 2019-07-25 07:37:36 +02:00
Eugen Wissner 282946560e Add singleError utility function 2019-07-23 07:22:32 +02:00
Eugen Wissner 1b5094b6a3 Parse the BOM header if any 2019-07-22 05:50:00 +02:00
Eugen Wissner 9d15b83164 Make the tutorial to compile again
- Remove generated documentation leaving only documentation sources.
- Add CI job checking that the tutorial is up to date.
2019-07-20 07:11:10 +02:00
Eugen Wissner 5cf10b38ec Report parse errors with line and column numbers 2019-07-19 06:38:54 +02:00
Eugen Wissner bc6a7dddd1 Reuse common types from AST.Core 2019-07-18 05:10:02 +02:00
Eugen Wissner 74801b0483 Remove TODO
Issues should be created instead.
2019-07-17 07:06:35 +02:00
Eugen Wissner f3b8d9b74c Make all exports explicit 2019-07-14 05:58:05 +02:00
Eugen Wissner eb40810f25 Replace tasty and HUnit with Hspec 2019-07-10 05:57:35 +02:00
Eugen Wissner 61879fb124 Constrain the resolvers with MonadIO
This replaces the most usages of MonadPlus, which is not appropriate for
the resolvers, since a resolver is unambiguously chosen by the name (no
need for 'mplus'), and the resolvers are often doing IO.
2019-07-08 10:15:47 +02:00
Eugen Wissner 22d4a4e583 Change the main namespace to Language.GraphQL 2019-07-07 06:31:53 +02:00
Eugen Wissner 1431db7e63 Add licence badge 2019-07-06 07:57:18 +02:00
Eugen Wissner d7b6fd0329 Allow resolvers to return arbitrary nested lists 2019-07-05 20:05:04 +02:00
Eugen Wissner 2fa50d4f62 Update CI settings 2019-07-04 06:32:04 +02:00
Eugen Wissner 6238b2fbfa Add nullable types 2019-07-03 17:54:50 +02:00
Eugen Wissner 91679650b5 Introduce monad transformer for resolvers
Now the errors in the resolvers can be handled and 3 tests throwing
errors pass now. Another test fail but it requires distinguisching
nullable and non-nullable values.
2019-07-02 20:07:26 +02:00
Eugen Wissner 1017b728d9 Pass root field names together with resolvers 2019-07-01 07:05:10 +02:00
Eugen Wissner f64e186c60 Move the source code into src/ 2019-06-30 06:07:32 +02:00
Eugen Wissner 28aaa6a70b Remove GHCI config 2019-06-29 04:46:45 +02:00
Eugen Wissner 79c734fa62 Replace Alternative with MonadPlus 2019-06-28 11:12:28 +02:00
Eugen Wissner ae4038eb47 Restore error handling 2019-06-27 08:00:59 +02:00
Eugen Wissner 3cc38343db Fix ambigious Int resolution in the lexer tests 2019-06-26 15:41:30 +02:00
Eugen Wissner 2172de3729 Enable mutations 2019-06-23 05:38:45 +02:00
Eugen Wissner 5e9bf9648d Parse queries with megaparsec 2019-06-21 10:44:58 +02:00
Eugen Wissner ce169ecef2 Add package.yaml, update stack snapshot to 13.25 2019-06-11 06:34:15 +02:00
Danny Navarro 40f9024b51 Merge pull request #22 from Lupino/master
update docs
2017-03-07 20:03:12 -03:00
Lupino 8d21972c42 update docs 2017-03-05 11:01:07 +08:00
Danny Navarro 2b5648efda
When argument is not found return null
The relevant test was restored too.
2017-03-03 17:02:19 -03:00
Danny Navarro fb071210cf
Fix wrong scientific exponent when parsing 2017-03-03 15:23:43 -03:00
Danny Navarro 285ccb0af9
Implement type instrospection tests
The main intention with this commit is to show a poor's man way to support type
instrospection.
2017-03-01 17:04:13 -03:00
Danny Navarro 6a10e28ba8
Garden 2017-03-01 16:05:49 -03:00
Danny Navarro 5954962de1
Make alternate Schema functions work with AST.Core 2017-03-01 16:04:35 -03:00
Danny Navarro 1327bcf7f7
Merge pull request #20 from Lupino/master 2017-03-01 15:13:20 -03:00
Danny Navarro e521d92c7f
Use builtin scientific `toBoundInteger` to check for Int32 bounds 2017-02-28 17:22:06 -03:00
Danny Navarro 1b8fca3658
Merge branch 'core'
This introduces a distinction between a Full and a Core AST. Fragments and
variables are replaced when transforming from Full to Core.
2017-02-28 16:07:00 -03:00
Danny Navarro bada28ce24
Simplify fragment substitution 2017-02-24 16:46:51 -03:00
Danny Navarro d2c138f8d1
Add basic Fragment Support
Only field names are supported for now.
2017-02-23 15:29:58 -03:00
Lupino 3be86bf69e Enable Monad for array and object resolver
When I use facebook/haxl, I can not find any way to the sub resolver.
so I add Monad resolver to support it.
2017-02-23 11:08:47 +08:00
Danny Navarro 39731ff233
Fix parsing of Named Types 2017-02-13 15:31:56 -03:00
Danny Navarro b7a72591fd
Support variables in AST transformation 2017-02-13 15:19:13 -03:00
Danny Navarro e716bc57e7
Wrap executed result in "data" object 2017-02-10 17:10:09 -03:00