Skip to content
  • Simon Peyton Jones's avatar
    Clone the binders of a SAKS where necessary · e7d8e4ee
    Simon Peyton Jones authored and Marge Bot's avatar Marge Bot committed
    Given a kind signature
    
       type T :: forall k. k -> forall k. k -> blah
       data T a b = ...
    
    where those k's have the same unique (which is possible;
    see #19093) we were giving the tyConBinders in tycon T the same
    unique, which caused chaos.
    
    Fix is simple: ensure uniqueness when decomposing the kind signature.
    See GHC.Tc.Gen.HsType.zipBinders
    e7d8e4ee