[Haskell-cafe] haddock could be a pretty-printer?

David Waern david.waern at gmail.com
Fri May 22 14:49:16 EDT 2009

2009/5/22 Maurício <briqueabraque at yahoo.com>:
> Hi,
> The new version of haddock makes use of GHC
> parser. How much of effort would take to make
> haddock generate pretty-print of the source
> code itself, including haddock documentation
> (although probably loosing other comments)?
> Maybe even an html version that documentation
> could point to?

You can use hscolour to output source code in HTML form and Haddock
can generate links to it if you use the --source-* flags. Most
documentation on Hackage seems to make use of this. Is this what you
want or is there some reason why you want the code to be


More information about the Haskell-Cafe mailing list