Ticket #222 (new defect)
Opened 7 months ago
Accept any input when parsing documentation
| Reported by: | SimonHengel | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 2.13.2 |
| Version: | 2.13.1 | Keywords: | |
| Cc: |
Description
The parser for documentation should never fail. If something is no valid Haddock syntax, then it can still be parsed as ordinary text.
E.g. the following is currently a parse error:
foo bar > baz
But we should instead parse it as:
DocParagraph (DocString "foo bar\n> baz\n")
That's the way most Markdown parsers do it.
Note: See
TracTickets for help on using
tickets.
