From 3e0b59323ca60b4130f7b8d8599d1e912542e5bc Mon Sep 17 00:00:00 2001 From: jaccokrijnen Date: Thu, 1 Sep 2016 22:28:10 +0200 Subject: [PATCH 1/2] Update developing-packages.markdown Document illegal package names ending in a hyphen and numbers --- Cabal/doc/developing-packages.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cabal/doc/developing-packages.markdown b/Cabal/doc/developing-packages.markdown index dcd134d2201..4ef840095df 100644 --- a/Cabal/doc/developing-packages.markdown +++ b/Cabal/doc/developing-packages.markdown @@ -248,8 +248,9 @@ still important, even when using packages. ### Package names and versions ### All packages have a name, e.g. "HUnit". Package names are assumed to be -unique. Cabal package names can use letters, numbers and hyphens, but -not spaces. The namespace for Cabal packages is flat, not hierarchical. +unique. Cabal package names may contain letters, numbers and hyphens, but +not spaces and may also not end in "-xyz", i.e. a hyphen followed by +numbers. The namespace for Cabal packages is flat, not hierarchical. Packages also have a version, e.g "1.1". This matches the typical way in which packages are developed. Strictly speaking, each version of a From 803af5cd4eb12d03c1992770dd7126d13070fe1a Mon Sep 17 00:00:00 2001 From: jaccokrijnen Date: Thu, 1 Sep 2016 22:34:59 +0200 Subject: [PATCH 2/2] Update developing-packages.markdown Document that any hyphened section may not consist of only numbers --- Cabal/doc/developing-packages.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cabal/doc/developing-packages.markdown b/Cabal/doc/developing-packages.markdown index 4ef840095df..0100fd0925f 100644 --- a/Cabal/doc/developing-packages.markdown +++ b/Cabal/doc/developing-packages.markdown @@ -249,7 +249,7 @@ still important, even when using packages. All packages have a name, e.g. "HUnit". Package names are assumed to be unique. Cabal package names may contain letters, numbers and hyphens, but -not spaces and may also not end in "-xyz", i.e. a hyphen followed by +not spaces and may also not contain a hyphened section consisting of only numbers. The namespace for Cabal packages is flat, not hierarchical. Packages also have a version, e.g "1.1". This matches the typical way in