Parser: allow empty multi-line deprecation warnings
authorThomas Miedema <thomasmiedema@gmail.com>
Sat, 7 Nov 2015 23:20:15 +0000 (00:20 +0100)
committerBen Gamari <ben@smart-cactus.org>
Sat, 7 Nov 2015 23:54:05 +0000 (00:54 +0100)
commit8262c954ac3084f0dfcb6d5fa6e6172afd22eae7
tree5ace14749ebc7966f10eb694e76ea181789d3072
parentd9c1450a8e2f4af6a8347f64ba2cee98304dbe27
Parser: allow empty multi-line deprecation warnings

This should work,

    {-# DEPRECATED someFunction [] #-}

Test Plan: parser/should_compile/T3303

Reviewers: bgamari, austin

Reviewed By: austin

Subscribers: mpickering

Differential Revision: https://phabricator.haskell.org/D1433

GHC Trac Issues: #11044
compiler/parser/Parser.y
testsuite/tests/parser/should_compile/T3303.hs
testsuite/tests/parser/should_compile/T3303.stderr
testsuite/tests/parser/should_compile/T3303A.hs