From 56d88310df7c92a1721cc0dfa08a1d232c47c14b Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 26 Dec 2019 13:00:47 +0100 Subject: Add definition module --- src/Language/GraphQL/AST.hs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/Language/GraphQL/AST.hs') diff --git a/src/Language/GraphQL/AST.hs b/src/Language/GraphQL/AST.hs index 537e870..06aeedf 100644 --- a/src/Language/GraphQL/AST.hs +++ b/src/Language/GraphQL/AST.hs @@ -5,10 +5,8 @@ module Language.GraphQL.AST ( Alias , Argument(..) - , Definition(..) - , Directive(..) - , Document , ExecutableDefinition(..) + , Directive(..) , FragmentDefinition(..) , Name , NonNullType(..) @@ -28,15 +26,6 @@ import Data.Int (Int32) import Data.List.NonEmpty (NonEmpty) import Data.Text (Text) --- * Document - --- | GraphQL document. -type Document = NonEmpty Definition - --- | All kinds of definitions that can occur in a GraphQL document. -newtype Definition = ExecutableDefinition ExecutableDefinition - deriving (Eq, Show) - -- | Name type Name = Text @@ -74,8 +63,6 @@ type SelectionSet = NonEmpty Selection -- | Field selection. type SelectionSetOpt = [Selection] --- * Field - -- | Single GraphQL field. -- -- The only required property of a field is its name. Optionally it can also -- cgit v1.2.3