Accept next-docstrings on GADT constructors.
authorBen Gamari <bgamari.foss@gmail.com>
Thu, 23 Jul 2015 09:42:07 +0000 (11:42 +0200)
committerBen Gamari <ben@smart-cactus.org>
Thu, 23 Jul 2015 09:42:46 +0000 (11:42 +0200)
commit76e2341afdc050549067a18cac41373f64daf4c2
tree6df84605bf2ca7ed2d629958c2a47b4bb4463fcd
parentd2b4df157532adf014789ae9b2496f88369e43ea
Accept next-docstrings on GADT constructors.

Accept next docstrings (`-- | Docstring`) on GADT constructors.

I have confirmed that this adds no shift/reduce conflicts.

Test Plan: haddockA034

Reviewers: austin, simonpj, simonmar

Reviewed By: simonmar

Subscribers: Fuuzetsu, simonmar, thomie, mpickering, edsko

Differential Revision: https://phabricator.haskell.org/D1086
compiler/hsSyn/HsDecls.hs
compiler/parser/Parser.y
docs/users_guide/7.12.1-notes.xml
testsuite/tests/haddock/should_compile_flag_haddock/all.T
testsuite/tests/haddock/should_compile_flag_haddock/haddockA034.hs [new file with mode: 0644]
testsuite/tests/haddock/should_compile_flag_haddock/haddockA034.stderr [new file with mode: 0644]