
I am sending a patch[1] for integrating Cabal and HsColour + Haddock. Here is the result of running it on the base package: http://www.di.unipi.it/~zunino/tmp/base/index.html The above was generated by ./Setup configure ./Setup haddock --hscolour=hscolour.css Requirements: HsColour >=1.8, my hscolour.css file[2] (or your own, of course!), darcs Haddock + a link-breaking-bug fix (already sent) + any version bump (required: haddock > 0.8). Enjoy, Zun. [1] http://www.di.unipi.it/~zunino/tmp/cabal-hscolour-20070530 [2] http://www.di.unipi.it/~zunino/tmp/hscolour-emacs.css

Hi Roberto, On Wed, Jun 06, 2007 at 04:08:08PM +0200, Roberto Zunino wrote:
Roberto Zunino wrote:
I am sending a patch[1] for integrating Cabal and HsColour + Haddock.
Any comments on this? Can it be included in Cabal?
I think Duncan, who usually deals with Cabal patches, is offline visiting family or something at the moment, so I expect he will take a look once he is back. I quickly skimmed the patch and it looked generally OK to me. One thing I did notice is this: let linkToHscolour = if hsColour then ["--source-module=src/%{FILE///-}.html" ,"--source-entity=src/%{FILE///-}.html#(line%{LINE})"] I assume by default haddock names each line, and hscolor doesn't? It would be nice to tweak hscolor so it also names the lines if so (but I don't think that needs to be done before the patch is accepted). Thanks Ian

Ian Lynagh wrote:
I think Duncan, who usually deals with Cabal patches, is offline visiting family or something at the moment, so I expect he will take a look once he is back.
OK, thank you for the information.
I assume by default haddock names each line, and hscolor doesn't? It would be nice to tweak hscolor so it also names the lines if so (but I don't think that needs to be done before the patch is accepted).
I already did this: check the latest release of hscolour. :-) The only non-released dependency is Haddock: darcs Haddock is needed for links to work. Zun.

On Mon, 2007-06-11 at 12:29 +0100, Ian Lynagh wrote:
Hi Roberto,
On Wed, Jun 06, 2007 at 04:08:08PM +0200, Roberto Zunino wrote:
Roberto Zunino wrote:
I am sending a patch[1] for integrating Cabal and HsColour + Haddock.
Any comments on this? Can it be included in Cabal?
I think Duncan, who usually deals with Cabal patches, is offline visiting family or something at the moment, so I expect he will take a look once he is back.
If Ian says it's ok, I'm sure I'll say the same thing :-). Yes, I'll look at it in detail when I get back in about 12 days time. Duncan
participants (3)
-
Duncan Coutts
-
Ian Lynagh
-
Roberto Zunino