diff options
| author | Eugen Wissner <belka@caraus.de> | 2019-10-25 09:07:45 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2019-10-25 09:07:45 +0200 |
| commit | 51d39b69e83a9e258c7b6ee4b81dcfcb3063e6fc (patch) | |
| tree | 94fe4d4c024bfa9de87aa1fe37abf324c0fe159a /src/Language/GraphQL/AST.hs | |
| parent | 75bc3b8509e6a5a7a729a7aa1367a4a4fe82613e (diff) | |
| download | graphql-51d39b69e83a9e258c7b6ee4b81dcfcb3063e6fc.tar.gz | |
Remove deprecated functions and aliases
Diffstat (limited to 'src/Language/GraphQL/AST.hs')
| -rw-r--r-- | src/Language/GraphQL/AST.hs | 35 |
1 files changed, 4 insertions, 31 deletions
diff --git a/src/Language/GraphQL/AST.hs b/src/Language/GraphQL/AST.hs index 6794ae3..29d7d80 100644 --- a/src/Language/GraphQL/AST.hs +++ b/src/Language/GraphQL/AST.hs @@ -5,14 +5,11 @@ module Language.GraphQL.AST ( Alias , Argument(..) - , Arguments , Definition(..) , Directive(..) - , Directives , Document , Field(..) , FragmentDefinition(..) - , FragmentName , FragmentSpread(..) , InlineFragment(..) , Name @@ -27,7 +24,6 @@ module Language.GraphQL.AST , TypeCondition , Value(..) , VariableDefinition(..) - , VariableDefinitions ) where import Data.Int (Int32) @@ -43,6 +39,9 @@ import Language.GraphQL.AST.Core ( Alias -- | GraphQL document. type Document = NonEmpty Definition +-- | Directive. +data Directive = Directive Name [Argument] deriving (Eq, Show) + -- * Operations -- | Top-level definition of a document, either an operation or a fragment. @@ -88,12 +87,6 @@ data Field = Field (Maybe Alias) Name [Argument] [Directive] SelectionSetOpt deriving (Eq, Show) --- * Arguments - --- | Argument list. -{-# DEPRECATED Arguments "Use [Argument] instead" #-} -type Arguments = [Argument] - -- | Argument. data Argument = Argument Name Value deriving (Eq,Show) @@ -111,10 +104,7 @@ data FragmentDefinition = FragmentDefinition Name TypeCondition [Directive] SelectionSet deriving (Eq, Show) -{-# DEPRECATED FragmentName "Use Name instead" #-} -type FragmentName = Name - --- * Input values +-- * Inputs -- | Input value. data Value = ValueVariable Name @@ -133,18 +123,10 @@ data Value = ValueVariable Name -- A list of 'ObjectField's represents a GraphQL object type. data ObjectField = ObjectField Name Value deriving (Eq, Show) --- * Variables - --- | Variable definition list. -{-# DEPRECATED VariableDefinitions "Use [VariableDefinition] instead" #-} -type VariableDefinitions = [VariableDefinition] - -- | Variable definition. data VariableDefinition = VariableDefinition Name Type (Maybe Value) deriving (Eq, Show) --- * Input types - -- | Type representation. data Type = TypeNamed Name | TypeList Type @@ -156,12 +138,3 @@ data Type = TypeNamed Name data NonNullType = NonNullTypeNamed Name | NonNullTypeList Type deriving (Eq, Show) - --- * Directives - --- | Directive list. -{-# DEPRECATED Directives "Use [Directive] instead" #-} -type Directives = [Directive] - --- | Directive. -data Directive = Directive Name [Argument] deriving (Eq, Show) |
