summaryrefslogtreecommitdiff
path: root/src/Language/GraphQL/AST/Document.hs
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2023-10-13 20:42:24 +0200
committerEugen Wissner <belka@caraus.de>2023-10-13 20:42:24 +0200
commitfdc43e4e257cbc1cb1a829b81a7278f6404be79c (patch)
treeee3dc860bd641d76672c23936bbd70fd7a93decf /src/Language/GraphQL/AST/Document.hs
parent2fdf04f54a2d4fe68068ebeb232624e3dcce24b7 (diff)
downloadgraphql-fdc43e4e257cbc1cb1a829b81a7278f6404be79c.tar.gz
Fix non nullable type representation
…in executor error messages.
Diffstat (limited to 'src/Language/GraphQL/AST/Document.hs')
-rw-r--r--src/Language/GraphQL/AST/Document.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Language/GraphQL/AST/Document.hs b/src/Language/GraphQL/AST/Document.hs
index 131285d..66fc246 100644
--- a/src/Language/GraphQL/AST/Document.hs
+++ b/src/Language/GraphQL/AST/Document.hs
@@ -371,8 +371,8 @@ data NonNullType
deriving Eq
instance Show NonNullType where
- show (NonNullTypeNamed typeName) = '!' : Text.unpack typeName
- show (NonNullTypeList listType) = concat ["![", show listType, "]"]
+ show (NonNullTypeNamed typeName) = Text.unpack $ typeName <> "!"
+ show (NonNullTypeList listType) = concat ["[", show listType, "]!"]
-- ** Directives