[Haddock] [haddock] #222: Accept any input when parsing documentation

haddock haddock at projects.haskell.org
Mon Oct 15 00:46:33 BST 2012

#222: Accept any input when parsing documentation
Reporter:  SimonHengel  |       Owner:        
    Type:  defect       |      Status:  new   
Priority:  major        |   Milestone:  2.13.2
 Version:  2.13.1       |    Keywords:        
 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.

Ticket URL: <http://trac.haskell.org/haddock/ticket/222>
haddock <http://www.haskell.org/haddock>
Haddock, The Haskell Documentation Tool

More information about the Haddock mailing list