Skip to content

Commit

Permalink
Clarify acceptable package name
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Dec 10, 2023
1 parent 1ba03ec commit c865557
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/new_command.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c865557

Please sign in to comment.