Fix #14390 by making toIfaceTyCon aware of equality
GHC was panicking when pretty-printing a heterogeneous equality type constructor (#14390) because the function which produced the type constructor, `toIfaceTyCon`, wasn't attaching the appropriate `IfaceTyConSort` for equality type constructors, which is `IfaceEqualityTyCon`. This is fixed easily enough. Test Plan: make test TEST=T14390 Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie GHC Trac Issues: #14390 Differential Revision: https://phabricator.haskell.org/D4132
Showing
- compiler/iface/ToIface.hs 6 additions, 0 deletionscompiler/iface/ToIface.hs
- testsuite/tests/typecheck/should_fail/T14390.hs 4 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T14390.hs
- testsuite/tests/typecheck/should_fail/T14390.stderr 5 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T14390.stderr
- testsuite/tests/typecheck/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/typecheck/should_fail/all.T
Loading
Please register or sign in to comment