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)
committerBen Gamari <ben@smart-cactus.org>
Sat, 13 Oct 2018 03:30:38 +0000 (23:30 -0400)
commit87266ea717de2df11d7b491bf3c525b7c1a1a47a
tree91f86e724a0a7c06567c7058f9266f61bf0c4492
parentfacf7cce37a294cee109002b59755a036ad13891
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

(cherry picked from commit 9bfbc4e16d511678cffa9f7f76b369c8cfca7a66)
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