From c865557562d4a5d3db62314bc8238d50b919eda2 Mon Sep 17 00:00:00 2001 From: Mike Pilgrem <mpilgrem@users.noreply.github.com> Date: Sun, 10 Dec 2023 00:09:25 +0000 Subject: [PATCH] Clarify acceptable package name --- doc/new_command.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/new_command.md b/doc/new_command.md index 3aecd5467e..83a53e6be0 100644 --- a/doc/new_command.md +++ b/doc/new_command.md @@ -10,16 +10,16 @@ stack new PACKAGE_NAME [--bare] [TEMPLATE_NAME] [-p|--param KEY:VALUE] [DIR(S)] `stack new` creates a new Stack project for a package using a project template. A package name acceptable to Cabal comprises an alphanumeric 'word'; or two or -more such words, with the words separated by a dash character (`-`). A word -cannot be comprised only of the characters `0` to `9`. An alphanumerical -character is one in one of the Unicode categories Lu (Letter, uppercase), -Ll (Letter, lowercase), Lt (Letter, titlecase), Lm (Letter, modifier), -Lo (Letter, other), Nd (Number, decimal digit), Nl (Number, letter), and -No (Number, other). +more such words, with the words separated by a hyphen/minus character (`-`). A +word cannot be comprised only of the characters `0` to `9`. + +An alphanumeric character is one in one of the Unicode Letter categories +(Lu (uppercase), Ll (lowercase), Lt (titlecase), Lm (modifier), or Lo (other)) +or Number categories (Nd (decimal), Nl (letter), or No (other)). !!! note - In the case of Hackage and acceptable package names, an alphanumerical + In the case of Hackage and acceptable package names, an alphanumeric character is limited to one of `A` to `Z`, `a` to `z`, and `0` to `9`. The project is created in a new directory named after the package, unless the