Tidy up IfaceEqualityTyCon
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 31 Oct 2017 11:01:17 +0000 (11:01 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 31 Oct 2017 11:03:36 +0000 (11:03 +0000)
commit29ae83374647e227d76acd896b89590fc15590d6
tree4e609ae12840039edfaf20fe74651dd3b9911cf8
parentaf0aea9c3d5f68f2694bd7b6380788764aa3f1ff
Tidy up IfaceEqualityTyCon

This commit

  commit 85aa1f4253163985fe07d172f8da73b784bb7b4b
  Date:   Sun Oct 29 20:48:19 2017 -0400
    Fix #14390 by making toIfaceTyCon aware of equality

was a bit over-complicated. This patch simplifies the (horribly
ad-hoc) treatement of IfaceEqualityTyCon, and documents it better.

No visible change in behaviour.
compiler/iface/IfaceType.hs
compiler/iface/ToIface.hs