| 5 | | * The AST must be embellished with support for comments. These will not be interspersed in the actual AST (unless we want to give special treatment to Haddock comments), instead residing in a separate structure along the AST. |
| 6 | | * We must have a (presumably two pass) parser that handles both code and comments, and remembers exact source locations for both. |
| 7 | | * The pretty-printer is probably the most involved. It must print the AST and comments ''exactly'' as they were parsed, at the exact same line and column. This will probably require an entirely new pretty-printer, leaving the old one as it stands for simple usage. |
| | 5 | * The AST must be embellished with support for comments. These will not be interspersed in the actual AST (unless we want to give special treatment to Haddock comments), instead residing in a separate structure along the AST. |
| | 6 | * We must have a (presumably two pass) parser that handles both code and comments, and remembers exact source locations for both. |
| | 7 | * The pretty-printer is probably the most involved. It must print the AST and comments ''exactly'' as they were parsed, at the exact same line and column. This will probably require an entirely new pretty-printer, leaving the old one as it stands for simple usage. |