Remove hack put in place for #12512
authorRyan Scott <ryan.gl.scott@gmail.com>
Thu, 21 Dec 2017 00:25:37 +0000 (19:25 -0500)
committerRyan Scott <ryan.gl.scott@gmail.com>
Thu, 21 Dec 2017 00:25:38 +0000 (19:25 -0500)
commit9cb289abc582c9eb8337a2621baf58e35feeff46
tree873c348f3666bf35bb6e4e632c40ad6669a9de15
parent9caf40e9d7233a2a6e78a0c4f2d2f13acbf804dd
Remove hack put in place for #12512

Summary:
Previously, I added an ad hoc check for unboxed tuples and
sums in standalone-derived instances to fix #12512, under the
pretense that polymorphism over `UnboxedTupleRep` and
`UnboxedSumRep` was a lie. But that is no longer the case, and so
this ad hoc check can be removed entirely. Less code, and easier to
understand.

Test Plan: make test TEST=T12512

Reviewers: bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4271
compiler/typecheck/TcDeriv.hs
testsuite/tests/deriving/should_fail/T12512.stderr