Collect wildcards in sum types during renaming (#12711)
authorÖmer Sinan Ağacan <omeragacan@gmail.com>
Thu, 24 Nov 2016 01:12:17 +0000 (04:12 +0300)
committerÖmer Sinan Ağacan <omeragacan@gmail.com>
Thu, 24 Nov 2016 01:12:32 +0000 (04:12 +0300)
commit14ac3725eb1e93289f205cbf432b537f6c84c4dc
tree8b295ef296fec03aabe39456d52becb57c1aa189
parentf43025340d05d3c6085c41e441d278745f34a317
Collect wildcards in sum types during renaming (#12711)

This patch also removes the "catch all" pattern in the function and
explicitly lists constructors to get a warning in the future if a new
`HsType` was added.

Reviewers: bgamari, austin, simonpj

Reviewed By: simonpj

Subscribers: simonpj, thomie

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

GHC Trac Issues: #12711
compiler/rename/RnTypes.hs
testsuite/tests/unboxedsums/T12711.script [new file with mode: 0644]
testsuite/tests/unboxedsums/T12711.stdout [new file with mode: 0644]
testsuite/tests/unboxedsums/all.T