Changed parser message for RankNTypes (#12811)
authorRupert Horlick <ruperthorlick@gmail.com>
Thu, 2 Mar 2017 21:35:53 +0000 (16:35 -0500)
committerBen Gamari <ben@smart-cactus.org>
Fri, 3 Mar 2017 00:58:01 +0000 (19:58 -0500)
commit488a9daa8246e0dd364dc44b8b6b8650fa6f3822
tree75fb7d50d4ce937dd065996d6bee8c149fb6790e
parent4b1f0721ce164d079848d1f8890630dbbf4cbf7a
Changed parser message for RankNTypes (#12811)

Added a check for whether RankNTypes is enabled
and changed error message accordingly

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: thomie, mpickering

Differential Revision: https://phabricator.haskell.org/D3262
compiler/parser/Parser.y
testsuite/tests/parser/should_fail/T12811.hs [new file with mode: 0644]
testsuite/tests/parser/should_fail/T12811.stderr [new file with mode: 0644]
testsuite/tests/parser/should_fail/all.T