pretty newby

Frank Atanassow franka at cs.uu.nl
Wed Sep 24 18:55:06 EDT 2003


On woensdag, sep 24, 2003, at 17:46 Europe/Amsterdam, John Hughes wrote:
> What's needed is a parser that can parse
> comments, and tie them to the *right place* in the abstract syntax 
> tree.
> Figuring out what a comment is really commenting is probably extremely
> hard...

The commenting conventions of Haddock serve this purpose pretty well. 
And Haddock's parser must hold onto the comments to do its job. Maybe 
that's a good place to start on a Haskell pretty-printer.

Regards,
Frank



More information about the Haskell mailing list