diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-08-27 10:51:01 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-08-27 10:51:01 +0200 |
| commit | b40d8a7e1ef03e6ccbe990572add58cfaa6d8ed9 (patch) | |
| tree | f803e634f92953b457c8418747d67678754e77c3 /src/Language/GraphQL/AST/Parser.hs | |
| parent | 4b5e25a4d84e992910ad4bdf92b0f8a2213493a8 (diff) | |
| download | graphql-b40d8a7e1ef03e6ccbe990572add58cfaa6d8ed9.tar.gz | |
Parse repeatable directive definitions
Diffstat (limited to 'src/Language/GraphQL/AST/Parser.hs')
| -rw-r--r-- | src/Language/GraphQL/AST/Parser.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Language/GraphQL/AST/Parser.hs b/src/Language/GraphQL/AST/Parser.hs index 049876e..f325ee7 100644 --- a/src/Language/GraphQL/AST/Parser.hs +++ b/src/Language/GraphQL/AST/Parser.hs @@ -27,6 +27,7 @@ import Text.Megaparsec , unPos , (<?>) ) +import Data.Maybe (isJust) -- | Parser for the GraphQL documents. document :: Parser Full.Document @@ -82,6 +83,7 @@ directiveDefinition description' = Full.DirectiveDefinition description' <* at <*> name <*> argumentsDefinition + <*> (isJust <$> optional (symbol "repeatable")) <* symbol "on" <*> directiveLocations <?> "DirectiveDefinition" |
