hackageDB :: [Package]

Uploading packages and package candidates

Uploading a package puts it in the main package index so that anyone can download it and view information about it. You can only upload a package version once, so try to get it right the first time!

You can also upload a package candidate to preview the package page, view any warnings or possible errors you might encounter, and let others install it before publishing it to the main index. (Note: you can view these warnings with 'cabal check'.) You can have multiple candidates for each package at the same time so long as they each have different versions. Finally, you can publish a candidate to the main index if it's not there already.

If you upload a package or package candidate and no other versions exist in the package database, you become part of the maintainer group for that package, and you can add other maintainers if you wish. If a maintainer group exists for a package, only its members can upload new versions of that package.

If there is no maintainer, the uploader can remove themselves from the group, and a package trustee can add anyone who wishes to assume the responsibility. The Maintainer field of the Cabal file should be None in this case. If a package is being maintained, any release not approved and supported by the maintainer should use a different package name. Then use the Maintainer field as above either to commit to supporting the fork 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 HackageDB username and password. (Alternatively, there's a command-line interface via cabal-install, which also needs the same username and password.)

Packages must be in the form produced by Cabal's sdist command: a gzipped tar file package-version.tar.gz comprising a directory package-version containing a package of that name and version, including package.cabal. See the notes at the bottom of the page.

Upload a package
Upload a package candidate

Notes