Improve error message when missing package arguments.

This commit is contained in:
Robin Heggelund Hansen 2022-09-16 09:12:44 +02:00
parent f27662cf63
commit dfabb5ba4b
2 changed files with 3 additions and 12 deletions

View File

@ -278,16 +278,7 @@ argErrorToDocs argError =
examples <- makeExamples
return
[ P.fillSep
[ "The",
"arguments",
"you",
"have",
"are",
"fine,",
"but",
"in",
"addition,",
"I",
[ "I",
"was",
"expecting",
"a",

View File

@ -93,8 +93,8 @@ package =
{ _singular = "package",
_plural = "packages",
_parser = parsePackage,
_suggest = (\_ -> return []),
_examples = \_ -> return []
_suggest = (\_ -> return ["gren-lang/browser"]),
_examples = \_ -> return ["gren-lang/browser"]
}
parsePackage :: String -> Maybe Pkg.Name