From 5390c4ca1e7e6bcf36dbe5e773c1355dd4b65939 Mon Sep 17 00:00:00 2001 From: Danny Navarro Date: Sat, 28 Jan 2017 14:15:14 -0300 Subject: Split AST in 2 One AST is meant to be a target parser and tries to adhere as much as possible to the spec. The other is a simplified version of that AST meant for execution. Also newtypes have been replaced by type synonyms and NonEmpty lists are being used where it makes sense. --- graphql.cabal | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'graphql.cabal') diff --git a/graphql.cabal b/graphql.cabal index d330abd..0fec483 100644 --- a/graphql.cabal +++ b/graphql.cabal @@ -25,11 +25,12 @@ library ghc-options: -Wall exposed-modules: Data.GraphQL Data.GraphQL.AST - Data.GraphQL.Encoder + Data.GraphQL.AST.Core Data.GraphQL.Execute + Data.GraphQL.Encoder + Data.GraphQL.Error Data.GraphQL.Schema Data.GraphQL.Parser - Data.GraphQL.Error build-depends: aeson >= 0.7.0.3, attoparsec >= 0.10.4.0, base >= 4.7 && < 5, -- cgit v1.2.3 From 693b7d18dcd48525b10ce297f89b3b33fd020784 Mon Sep 17 00:00:00 2001 From: Danny Navarro Date: Sun, 29 Jan 2017 18:44:03 -0300 Subject: Introduce Tranform module In the Transform module the Full AST will converted to Core AST. This commit also includes a partial implementation of Fragment replacement. --- graphql.cabal | 1 + 1 file changed, 1 insertion(+) (limited to 'graphql.cabal') diff --git a/graphql.cabal b/graphql.cabal index 0fec483..f037e41 100644 --- a/graphql.cabal +++ b/graphql.cabal @@ -26,6 +26,7 @@ library exposed-modules: Data.GraphQL Data.GraphQL.AST Data.GraphQL.AST.Core + Data.GraphQL.AST.Transform Data.GraphQL.Execute Data.GraphQL.Encoder Data.GraphQL.Error -- cgit v1.2.3