diff --git a/package.yaml b/package.yaml index 8653d3e..3139b26 100644 --- a/package.yaml +++ b/package.yaml @@ -21,9 +21,11 @@ extra-source-files: # NB the "redundant constraints" warning is a GHC bug: https://ghc.haskell.org/trac/ghc/ticket/11099 ghc-options: -Wall -fno-warn-redundant-constraints default-extensions: + - DerivingStrategies - NoImplicitPrelude - OverloadedStrings - RecordWildCards + - StandaloneDeriving - TypeApplications dependencies: diff --git a/scripts/hpc-ratchet b/scripts/hpc-ratchet index df77fe3..14ab078 100755 --- a/scripts/hpc-ratchet +++ b/scripts/hpc-ratchet @@ -37,7 +37,7 @@ Each item represents the number of "things" we are OK with not being covered. COVERAGE_TOLERANCE = { ALTERNATIVES: 154, BOOLEANS: 8, - EXPRESSIONS: 1366, + EXPRESSIONS: 1367, LOCAL_DECLS: 10, TOP_LEVEL_DECLS: 673, } diff --git a/src/GraphQL/Internal/Syntax/Parser.hs b/src/GraphQL/Internal/Syntax/Parser.hs index 5513116..ad40354 100644 --- a/src/GraphQL/Internal/Syntax/Parser.hs +++ b/src/GraphQL/Internal/Syntax/Parser.hs @@ -212,8 +212,8 @@ directive = AST.Directive -- * Type Reference type_ :: Parser AST.GType -type_ = AST.TypeList <$> listType - <|> AST.TypeNonNull <$> nonNullType +type_ = AST.TypeNonNull <$> nonNullType + <|> AST.TypeList <$> listType <|> AST.TypeNamed <$> namedType "type_ error!"