Fix parsing of Named Types

This commit is contained in:
Danny Navarro 2017-02-12 15:31:56 -03:00
parent b7a72591fd
commit 39731ff233
No known key found for this signature in database
GPG Key ID: 81E5F99780FA6A32

View File

@ -179,7 +179,7 @@ defaultValue = tok "=" *> value
-- * Input Types -- * Input Types
type_ :: Parser Type type_ :: Parser Type
type_ = TypeNamed <$> name type_ = TypeNamed <$> name <* but "!"
<|> TypeList <$> brackets type_ <|> TypeList <$> brackets type_
<|> TypeNonNull <$> nonNullType <|> TypeNonNull <$> nonNullType
<?> "type_ error!" <?> "type_ error!"