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. -

-

Upload forms

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.
  • - Categories are determined by whatever you put in the 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.
  • - Documentation for library packages should be generated by a maintainer. - The means of doing this is still up in the air. -
  • - -
  • - We have moved to Haddock 2, and expect some glitches. - - If you notice anything broken, please report it on the - Haddock bug tracker. -
  • - -
  • - In GHC 6.8, several modules were split from the 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.
  • - While Haddock 2 - accepts GHC features, it is also more picky about comment syntax than - the old version. + The hackage-server attempts to build documentation for library + packages, but this can fail. Maintainers can generate their own + documentation and upload it by using something along the lines of the + shell script below (note that the last two commands are the key ones): + +
    +#!/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
    +