Don't show constraint tuples in errors (#14907)
authorAlec Theriault <alec.theriault@gmail.com>
Tue, 25 Sep 2018 09:58:12 +0000 (11:58 +0200)
committerKrzysztof Gogolewski <krz.gogolewski@gmail.com>
Tue, 25 Sep 2018 09:58:12 +0000 (11:58 +0200)
commit9bfbc4e16d511678cffa9f7f76b369c8cfca7a66
tree16c1f3ba6ef57d056a863cb71e67aaa349c1a73a
parenta38eaa66af711abd22a72774ae0f4cf95b2bff7a
Don't show constraint tuples in errors (#14907)

Summary:
This means that 'GHC.Classes.(%,%)' is no longer mentioned in
error messages for things like

   class (a,b,c)  -- outside of 'GHC.Classes'
   class (a,Bool)

Test Plan: make TEST=T14907a && make TEST=T14907b

Reviewers: RyanGlScott, bgamari

Reviewed By: RyanGlScott

Subscribers: rwbarton, carter

GHC Trac Issues: #14907

Differential Revision: https://phabricator.haskell.org/D5172
compiler/parser/RdrHsSyn.hs
compiler/prelude/TysWiredIn.hs
compiler/rename/RnEnv.hs
testsuite/tests/rename/should_fail/T14907a.hs [new file with mode: 0644]
testsuite/tests/rename/should_fail/T14907a.stderr [new file with mode: 0644]
testsuite/tests/rename/should_fail/T14907b.hs [new file with mode: 0644]
testsuite/tests/rename/should_fail/T14907b.stderr [new file with mode: 0644]
testsuite/tests/rename/should_fail/all.T