diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2016-02-25 15:51:46 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-02-25 17:18:27 +0100 |
commit | e38c07bf5ceb8f50fa5110b70b3b83f0ce1358ba (patch) | |
tree | 2b2fbff1da7c55d04d2c8baf0a2226591ee22747 /testsuite/tests/module | |
parent | 6350eb1126e29b93829de688623c91b772f6d9eb (diff) | |
download | haskell-e38c07bf5ceb8f50fa5110b70b3b83f0ce1358ba.tar.gz |
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
Diffstat (limited to 'testsuite/tests/module')
-rw-r--r-- | testsuite/tests/module/mod70.stderr | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuite/tests/module/mod70.stderr b/testsuite/tests/module/mod70.stderr index f0e3042d3d..616ef12376 100644 --- a/testsuite/tests/module/mod70.stderr +++ b/testsuite/tests/module/mod70.stderr @@ -1,4 +1,2 @@ -mod70.hs:3:8: error: - Pattern syntax in expression context: ~1 - Did you mean to enable TypeApplications? +mod70.hs:3:8: error: Pattern syntax in expression context: ~1 |