nice new hackage urls

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Tue Jul 7 13:38:44 EDT 2009


On Tue, 2009-07-07 at 13:57 +0100, Ross Paterson wrote:
> On Tue, Jul 07, 2009 at 12:57:16PM +0100, Duncan Coutts wrote:
> > Currently in the cabal-install config file we use:
> > remote-repo:
> > hackage.haskell.org:http://hackage.haskell.org/packages/archive
> > 
> > and then lookup the 00-index.tar.gz and all the package tarballs
> > relative to that. So if we try to unify it around a single root '/' then
> > here's my suggestion:
> > 
> > /packages/00-index.tar.gz
> > /package/foo-1.0.tar.gz
> > 
> > Again, the principle is that /packages/* are attributes of the
> > collection as a whole (indexes, stats, reports), where /package/* are
> > elements of the collection (ie packages).
> 
> I've moved 00-index.tar.gz, pkg-list.html, recent.html and recent.rss
> up to /packages/,

Great.

> but it would be a bit of a pain to try to overlay the
> static package-specific data over the dynamically generated package pages.

I think we can do it with something like the following in a
suitable .htaccess file:

RewriteRule
  ^/package/([A-Za-z0-9-]*)-([0-9.]*)\.tar\.gz$ 
  /packages/archive/$1/$2/$1-$2.tar.gz

Duncan



More information about the cabal-devel mailing list