diff --git a/Data/GraphQL/Parser.hs b/Data/GraphQL/Parser.hs index 0fb0ffc..3b72104 100644 --- a/Data/GraphQL/Parser.hs +++ b/Data/GraphQL/Parser.hs @@ -179,7 +179,7 @@ defaultValue = tok "=" *> value -- * Input Types type_ :: Parser Type -type_ = TypeNamed <$> name +type_ = TypeNamed <$> name <* but "!" <|> TypeList <$> brackets type_ <|> TypeNonNull <$> nonNullType "type_ error!"