Fix interaction of record pattern synonyms and record wildcards
authorMatthew Pickering <matthewtpickering@gmail.com>
Sat, 1 Oct 2016 21:55:04 +0000 (17:55 -0400)
committerBen Gamari <ben@smart-cactus.org>
Sun, 2 Oct 2016 00:01:29 +0000 (20:01 -0400)
commit2d6642bd1956edf8b842c07d78e83c500246998a
treec16292ebfe857bba54c65de413c260e576860a46
parentc93813d96b1da53a2ebd9c9ac5af6cc3e3443c43
Fix interaction of record pattern synonyms and record wildcards

We were missing an appropiate *ConLike lookup in the case when
the pattern synonym was defined in a different module.

Reviewers: austin, bgamari, simonpj

Reviewed By: simonpj

Subscribers: simonpj, thomie

Differential Revision: https://phabricator.haskell.org/D2544

GHC Trac Issues: #11987
compiler/rename/RnEnv.hs
testsuite/tests/patsyn/should_compile/T11987.hs [new file with mode: 0644]
testsuite/tests/patsyn/should_compile/T11987a.hs [new file with mode: 0644]
testsuite/tests/patsyn/should_compile/all.T