diff --git a/datafiles/templates/upload.html.st b/datafiles/templates/upload.html.st
index adfe1ffaf..595b82e4b 100644
--- a/datafiles/templates/upload.html.st
+++ b/datafiles/templates/upload.html.st
@@ -39,15 +39,9 @@ the Maintainer
field as above either to commit to supporting the fo
yourself or to mark it as unsupported.
Note that all of the above is a makeshift upload policy based on the features
-available in the newer hackage-server. The Maintainer
field has its uses,
-as does maintainer user groups. The libraries mailing list should probably
-determine the best approach for this.
-
Some last formalities: to upload a package, you'll need a Hackage -username and password. (Alternatively, there's a +username and password. (Alternatively, there's a command-line interface via cabal-install, which also needs the same username and password.)
@@ -72,36 +66,36 @@ See the notes at the bottom of the page.Category
field
- (there's no agreed list of category names yet).
+ Categories are determined by whatever you put in the Category
field.
+ You should try to pick existing categories when possible.
You can have more than one category, separated by commas. If no other versions of
the package exist, the categories automatically become the package's tags.
base
package
- into other packages.
+ Occasional changes to the GHC base package can mean that some work needs to be done to make packages compatible across a range of versions.
+ See these notes for some tips in how to do so.
- See these notes
- on making packages work with a range of versions of GHC.
+ There are some notes for upgrading much older packages as well.
+#!/bin/sh +set -e + +dir=\$(mktemp -d dist-docs.XXXXXX) +trap 'rm -r "\$dir"' EXIT + +cabal haddock --builddir="\$dir" --for-hackage --haddock-option=--hyperlinked-source +# Starting with cabal 2.0, `--publish` is needed for uploading to non-candidate releases +cabal upload -d \$dir/*-docs.tar.gz +