Duncan Coutts <[email protected]> wrote:

> Someone was complaining the other day that the hscolour output
> run on the result of happy is not really readable,

To clarify, what he said was that hscolouring Happy output did not
_enhance_ its readability.  In other words, you can put lipstick on a
pig, but it's still a pig.

> but then it's not
> clear if running it on the happy input would be any better.

Try it!  I reckon it looks pretty good actually.  Lexically, the
difference between Happy and H'98 sources is negligible.

> For the particular case of .lhs and cpp, I hope we'd get better
> hscolour output by not running unlit or cpp first. Malcolm says it'll
> at least do something. So it seems worth checking which ends up
> looking more useful.

It seems likely that preserving the literate comments is the sensible
thing to do, since we are linking together documentation here
(haddock/source).  HsColour has -lit and -lit-tex options, to avoid
colouring the literate comments from a .lhs.

Regards,
    Malcolm

_______________________________________________
cabal-devel mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cabal-devel

Reply via email to