Complain about illegal type literals in renamer, not parser
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 26 Sep 2014 11:34:13 +0000 (12:34 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 26 Sep 2014 11:34:53 +0000 (12:34 +0100)
commitac157de3cd959a18a71fa056403675e2c0563497
tree81f474ddc5df264fa9ac57c072933467c84f394b
parent0e16cbf34d5d882c6f4800295db5fa5e2b42c342
Complain about illegal type literals in renamer, not parser

A premature complaint was causing Trac #9634.  Acutally this
change also simplifies the lexer and eliminates duplication.
(The renamer was already making the check, as it happens.)
compiler/parser/Lexer.x
compiler/parser/Parser.y.pp
compiler/parser/RdrHsSyn.lhs
compiler/rename/RnTypes.lhs
testsuite/tests/parser/should_fail/T3811b.stderr
testsuite/tests/typecheck/should_fail/T9634.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T9634.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T
testsuite/tests/typecheck/should_fail/tcfail094.stderr