Skip to content
  • Simon Peyton Jones's avatar
    Use a well-kinded substitution to instantiate · 4455c86d
    Simon Peyton Jones authored
    In tcDataConPat we were creating an ill-kinded substitution
    -- or at least one that is well kinded only after you have solved
    other equalities.  THat led to a crash, because the instantiated
    data con type was ill-kinded.
    
    This patch guarantees that the instantiating substitution is
    well-kinded.
    
    Fixed Trac #14154
    4455c86d