[Haskell-cafe] Haddock/hscolour integration broken on Hackage?
nominolo at googlemail.com
Mon Sep 10 14:35:06 EDT 2007
On Mon, 2007-09-10 at 14:11 -0400, David Menendez wrote:
> I was looking at the Data.Binary documentation on Hackage, and I've
> noticed some problems with the associated source listings.
> First, none of the "Source" links work. They all refer to fragment IDs
> (e.g., "#Binary") that are not defined. I'm not sure if this is a
> problem with hscolor, haddock, or hackage.
> Second, the source listing itself is invalid HTML. The W3C
> validator lists 678 errors. Of these, 677 are have to do with the line
> number anchors, all of which start with parentheses. This is bad not
> only because HTML requires fragment ids to start with a letter, but
> because parentheses are not allowed to occur in URIs. As a result,
> links to line numbers will come out looking like
>  <http://hackage.haskell.org/packages/archive/binary/0.3/doc/html/Data-Binary.html>
>  <http://hackage.haskell.org/packages/archive/binary/0.3/doc/html/src/Data-Binary.html>
>  <http://validator.w3.org/check?uri=http%3A%2F%2Fhackage.haskell.org%2Fpackages%2Farchive%2Fbinary%2F0.3%2Fdoc%2Fhtml%2Fsrc%2FData-Binary.html&charset=%28detect+automatically%29&doctype=Inline&group=1>
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
This might be related to the error message in the build log 
Warning: Data.Binary: the following names could not be resolved:
which comes from the example in the description of the 'Binary' class. I think the problem is the use of 'v' instead of @v at .
Interestingly, it works for the other modules like Data.Binary.Put and .Get
 .. http://hackage.haskell.org/packages/archive/binary/0.3/log
More information about the Haskell-Cafe