Skip to content

Clarify “letters” in spec #682

@toastal

Description

@toastal

Must contain only letters and digits, optionally separated by hyphens
Must begin with a letter or digit

Are uppercase letters allowed? Is lower é a letter? Is lower α? Is ? Is ? Is 🍉?

acceptedChars = Parsing.Combinators.choice [ Parsing.String.Basic.lower, Parsing.String.Basic.digit ] <|> Parsing.fail charErr

https://pursuit.purescript.org/packages/purescript-parsing/10.2.0/docs/Parsing.String.Basic#v:lower

I’m assuming using lower allows anything from a bicameral script (just like how PureScript identifiers work). Asking because I got really frustrated by OCaml+OPAM’s limitations to ASCII only for packages/identifiers/modules, & this spec isn’t clear on what ’letter’ means.

Metadata

Metadata

Assignees

No one assigned

    Labels

    document meImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions