Skip to content
  • Simon Peyton Jones's avatar
    Fix type-equality in the type checker (fixes Trac #8553) · 985663ea
    Simon Peyton Jones authored
    For horrible reasons (Note [Comparison with OpenTypeKind] in Type), the
    function Type.eqType currently equates OOpenKind with *.  This may or may
    not be a good idea (it's certainly a revolting one) but it DOES NOT WORK
    in the type checker, which *does* need to distinguish OpenKind and *.
    
    Rather than solve the underlying problem (I have some ideas) I just
    introduced a new, and very short, simple, straightforward function
    TcType.tcEqType to do the job.
    985663ea