Ticket #11 (closed defect: invalid)
Top-level Haddock comments must follow the layout of declarations
| Reported by: | waern | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Version: | 2.1.0 | Keywords: | |
| Cc: |
Description
If layout is used, a Haddock comment must be at the same indentation level as the declaration it is commenting. As an example, the following causes a parse error:
-- | doc comment for f f :: Int f = 1
This needs to be fixed in the GHC lexer, hence the 2.3.0 milestone.
Change History
Note: See
TracTickets for help on using
tickets.
