diff options
| author | Eugen Wissner <belka@caraus.de> | 2023-10-13 20:42:24 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2023-10-13 20:42:24 +0200 |
| commit | fdc43e4e257cbc1cb1a829b81a7278f6404be79c (patch) | |
| tree | ee3dc860bd641d76672c23936bbd70fd7a93decf /src/Language/GraphQL/AST/Document.hs | |
| parent | 2fdf04f54a2d4fe68068ebeb232624e3dcce24b7 (diff) | |
| download | graphql-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.hs | 4 |
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 |
