summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitrii Skurikhin <dmitrii.sk@gmail.com>2020-03-31 10:04:34 +0300
committerDmitrii Skurikhin <dmitrii.sk@gmail.com>2020-03-31 10:04:34 +0300
commit30d6a0a58dcdd20bf9ef555d5fc476436f520f85 (patch)
tree8224d11528b52396d3ebda9abedef4e433d79671 /src
parent613e929d91dfc46ecfc5e28479098ce52aeb56f6 (diff)
downloadgraphql-30d6a0a58dcdd20bf9ef555d5fc476436f520f85.tar.gz
encode null value as "null"
Diffstat (limited to 'src')
-rw-r--r--src/Language/GraphQL/AST/Encoder.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Language/GraphQL/AST/Encoder.hs b/src/Language/GraphQL/AST/Encoder.hs
index 9b293bf..f5bfcc3 100644
--- a/src/Language/GraphQL/AST/Encoder.hs
+++ b/src/Language/GraphQL/AST/Encoder.hs
@@ -205,7 +205,7 @@ value _ (Full.Variable x) = variable x
value _ (Full.Int x) = Builder.toLazyText $ decimal x
value _ (Full.Float x) = Builder.toLazyText $ realFloat x
value _ (Full.Boolean x) = booleanValue x
-value _ Full.Null = mempty
+value _ Full.Null = "null"
value formatter (Full.String string) = stringValue formatter string
value _ (Full.Enum x) = Lazy.Text.fromStrict x
value formatter (Full.List x) = listValue formatter x