Improve accuracy of suggestion to use TypeApplications
authorMatthew Pickering <matthewtpickering@gmail.com>
Thu, 25 Feb 2016 14:51:46 +0000 (15:51 +0100)
committerBen Gamari <ben@smart-cactus.org>
Thu, 25 Feb 2016 16:18:27 +0000 (17:18 +0100)
commite38c07bf5ceb8f50fa5110b70b3b83f0ce1358ba
tree2b2fbff1da7c55d04d2c8baf0a2226591ee22747
parent6350eb1126e29b93829de688623c91b772f6d9eb
Improve accuracy of suggestion to use TypeApplications

The suggestion only makes sense when we try
to use an as pattern in an expression context.

It is misleading in the case of a lazy pattern and
view pattern.

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1948
compiler/rename/RnExpr.hs
testsuite/tests/module/mod70.stderr
testsuite/tests/rename/should_fail/rnfail016.stderr
testsuite/tests/rename/should_fail/rnfail051.stderr