Hackage complains about data-dir

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Wed Aug 27 05:53:04 EDT 2008


On Wed, 2008-08-27 at 10:01 +0100, Ross Paterson wrote:
> On Wed, Aug 27, 2008 at 03:29:48AM +0100, Duncan Coutts wrote:
> > I think Cabal is right. Both 1.4 and HEAD parse hoogle.cabal without
> > complaint. I suspect that the fix is to recompile the hackage scripts
> > against a more recent Cabal version (ideally the latest stable 1.4.x
> > release).
> 
> I've recompiled them against 1.5.3

Unfortunately there seems to be a problem with an old .cabal file that
does not parse. This means that the pkg-list program fails and the
package list html file is empty.

Specifically, catch-0.1.1 contains:

Other-Modules:
  [..snip...]
  Yhc.binarytrees

which does not parse as a module name. I'm not sure why it ever did. I
should investigate that.

Because of that,
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/catch-0.1.1
gives:
500 Internal Server Error
exit: ExitFailure 1

and running ./packages/bin/pkg-list gives:
pkg-list:
/srv/www/hackage.haskell.org/public_html/packages/archive/catch/0.1.1/catch.cabal:140:
Parse of field 'other-modules' failed.

A quick fix would be to just edit that file to correct the syntax error,
or remove it from the index and then re-generate the package list.

This clearly indicates the danger of making the .cabal file parser
stricter, though as I say I'm not aware of recent changes there. I'll
have to look into it.

Duncan



More information about the cabal-devel mailing list