summaryrefslogtreecommitdiff
path: root/src/Language/GraphQL/AST.hs
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2019-12-26 13:00:47 +0100
committerEugen Wissner <belka@caraus.de>2019-12-26 13:07:21 +0100
commit56d88310df7c92a1721cc0dfa08a1d232c47c14b (patch)
tree15604a675752a64e4a3be68e8848c7133e7ad5c8 /src/Language/GraphQL/AST.hs
parente3a495a778e8ccec18e5d5c494ab3b0eed31b13c (diff)
downloadgraphql-56d88310df7c92a1721cc0dfa08a1d232c47c14b.tar.gz
Add definition module
Diffstat (limited to 'src/Language/GraphQL/AST.hs')
-rw-r--r--src/Language/GraphQL/AST.hs15
1 files changed, 1 insertions, 14 deletions
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