@@ -27,7 +27,7 @@ module GraphQL.Internal.Syntax.AST
2727 , ObjectField (.. )
2828 , DefaultValue
2929 , Directive (.. )
30- , Type (.. )
30+ , GType (.. )
3131 , NamedType (.. )
3232 , ListType (.. )
3333 , NonNullType (.. )
@@ -46,7 +46,7 @@ module GraphQL.Internal.Syntax.AST
4646 , TypeExtensionDefinition (.. )
4747 ) where
4848
49- import Protolude hiding ( Type )
49+ import Protolude
5050
5151import Test.QuickCheck (Arbitrary (.. ), listOf , oneof )
5252
@@ -78,7 +78,7 @@ data OperationDefinition
7878data Node = Node (Maybe Name ) [VariableDefinition ] [Directive ] SelectionSet
7979 deriving (Eq ,Show )
8080
81- data VariableDefinition = VariableDefinition Variable Type (Maybe DefaultValue )
81+ data VariableDefinition = VariableDefinition Variable GType (Maybe DefaultValue )
8282 deriving (Eq ,Show )
8383
8484newtype Variable = Variable Name deriving (Eq , Ord , Show )
@@ -169,14 +169,14 @@ data Directive = Directive Name [Argument] deriving (Eq,Show)
169169
170170-- * Type Reference
171171
172- data Type = TypeNamed NamedType
173- | TypeList ListType
174- | TypeNonNull NonNullType
175- deriving (Eq , Ord , Show )
172+ data GType = TypeNamed NamedType
173+ | TypeList ListType
174+ | TypeNonNull NonNullType
175+ deriving (Eq , Ord , Show )
176176
177177newtype NamedType = NamedType Name deriving (Eq , Ord , Show )
178178
179- newtype ListType = ListType Type deriving (Eq , Ord , Show )
179+ newtype ListType = ListType GType deriving (Eq , Ord , Show )
180180
181181data NonNullType = NonNullTypeNamed NamedType
182182 | NonNullTypeList ListType
@@ -198,12 +198,12 @@ data ObjectTypeDefinition = ObjectTypeDefinition Name Interfaces [FieldDefinitio
198198
199199type Interfaces = [NamedType ]
200200
201- data FieldDefinition = FieldDefinition Name ArgumentsDefinition Type
201+ data FieldDefinition = FieldDefinition Name ArgumentsDefinition GType
202202 deriving (Eq ,Show )
203203
204204type ArgumentsDefinition = [InputValueDefinition ]
205205
206- data InputValueDefinition = InputValueDefinition Name Type (Maybe DefaultValue )
206+ data InputValueDefinition = InputValueDefinition Name GType (Maybe DefaultValue )
207207 deriving (Eq ,Show )
208208
209209data InterfaceTypeDefinition = InterfaceTypeDefinition Name [FieldDefinition ]
0 commit comments