File tree 3 files changed +6
-7
lines changed
3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 6
6
{-# LANGUAGE ScopedTypeVariables #-}
7
7
module GraphQL.Internal.Name
8
8
( Name (unName , Name )
9
- , mempty
10
9
, NameError (.. )
11
10
, makeName
12
11
, nameFromSymbol
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import Test.Tasty (TestTree)
13
13
import Test.Tasty.Hspec (testSpec , describe , it , shouldBe )
14
14
15
15
import GraphQL.Value (String (.. ))
16
- import GraphQL.Internal.Name (Name ( Name ), mempty )
16
+ import GraphQL.Internal.Name (Name )
17
17
import qualified GraphQL.Internal.Syntax.AST as AST
18
18
import qualified GraphQL.Internal.Syntax.Parser as Parser
19
19
import qualified GraphQL.Internal.Syntax.Encoder as Encoder
@@ -106,7 +106,7 @@ tests = testSpec "AST" $ do
106
106
let expected = AST. QueryDocument
107
107
[ AST. DefinitionOperation
108
108
(AST. Query
109
- (AST. Node ( Name mempty ) [] []
109
+ (AST. Node Nothing [] []
110
110
[ AST. SelectionField
111
111
(AST. Field Nothing dog [] []
112
112
[ AST. SelectionField (AST. Field Nothing someName [] [] [] )
@@ -194,7 +194,7 @@ tests = testSpec "AST" $ do
194
194
let expected = AST. QueryDocument
195
195
[ AST. DefinitionOperation
196
196
(AST. Query
197
- (AST. Node ( Name mempty )
197
+ (AST. Node Nothing
198
198
[ AST. VariableDefinition
199
199
(AST. Variable " atOtherHomes" )
200
200
(AST. TypeNamed (AST. NamedType " Boolean" ))
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import Test.QuickCheck ((===))
10
10
import Test.Tasty (TestTree )
11
11
import Test.Tasty.Hspec (testSpec , describe , it , shouldBe )
12
12
13
- import GraphQL.Internal.Name (Name ( Name ), mempty )
13
+ import GraphQL.Internal.Name (Name )
14
14
import qualified GraphQL.Internal.Syntax.AST as AST
15
15
import GraphQL.Internal.Schema (Schema )
16
16
import GraphQL.Internal.Validation
@@ -52,7 +52,7 @@ tests = testSpec "Validation" $ do
52
52
let doc = AST. QueryDocument
53
53
[ AST. DefinitionOperation
54
54
(AST. Query
55
- (AST. Node (Name mempty ) [] []
55
+ (AST. Node (Nothing ) [] []
56
56
[ AST. SelectionField
57
57
(AST. Field Nothing dog [] []
58
58
[ AST. SelectionField (AST. Field Nothing someName [] [] [] )
@@ -65,7 +65,7 @@ tests = testSpec "Validation" $ do
65
65
let doc = AST. QueryDocument
66
66
[ AST. DefinitionOperation
67
67
(AST. Query
68
- (AST. Node ( Name mempty )
68
+ (AST. Node Nothing
69
69
[ AST. VariableDefinition
70
70
(AST. Variable " atOtherHomes" )
71
71
(AST. TypeNamed (AST. NamedType " Boolean" ))
You can’t perform that action at this time.
0 commit comments