Fix #14811 by wiring in $tcUnit#
authorRyan Scott <ryan.gl.scott@gmail.com>
Fri, 16 Feb 2018 18:51:27 +0000 (13:51 -0500)
committerDavid Feuer <David.Feuer@gmail.com>
Fri, 16 Feb 2018 18:51:28 +0000 (13:51 -0500)
commitd5ac5820111bc957e72c8ce11e59d7cbbdd63526
tree149da02a874d98917e1920f11ad8426f7ef97090
parent7c173b9043f7a9a5da46c5b0cc5fc3b38d1a7019
Fix #14811 by wiring in $tcUnit#

Previously, we were skipping over `$tcUnit#` entirely when
wiring in `Typeable` tycons, resulting in #14811. Easily fixed.

Test Plan: make test TEST=T14811

Reviewers: bgamari, dfeuer

Reviewed By: dfeuer

Subscribers: dfeuer, rwbarton, thomie, carter

GHC Trac Issues: #14811

Differential Revision: https://phabricator.haskell.org/D4414
compiler/typecheck/TcTypeable.hs
testsuite/tests/typecheck/should_compile/T14811.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T