
-------- Forwarded Message --------
From: David Waern
To: Duncan Coutts Subject: Re: GHC's CPP and Cabal's unlit Date: Sat, 2 Feb 2008 16:43:10 +0100 2008/2/2, Duncan Coutts
: On Thu, 2008-01-31 at 14:43 +0000, Duncan Coutts wrote:
On Thu, 2008-01-10 at 14:25 +0000, Alistair Bayley wrote:
the comment block (like cabal does) - don't indent code relative to comments, because Haddock doesn't like this
Hmm, we will have to find another solution to this because the H98 unlit spec clearly states that '>' is to be replaced with a ' ', not just deleted. So if haddock barfs on code like:
-- a comment
some code
So I downloaded takusen and tried this. Haddock does indeed barf. The problem is worse though because we do not know how much to indent by to fix things.
I just checked with Haddock 2 and it also doesn't accept "mis-indented" comments. Fixing this might be possible but it would need modifications to the GHC parser. It might be better to look at the indentation level of the code, and use that for the comments.
David