Skip to content
  • Simon Peyton Jones's avatar
    Fix scoping of data cons during kind checking · 2501fb70
    Simon Peyton Jones authored
    Trac #13625 pointed out that in
    
       data X :: Y where Y :: X
    
    we need 'Y' to be in scope (as APromotionErr) when dealing with
    X's kind signature.  Previously we got a crash.
    
    This patch simplifies the code as well as making it work.
    2501fb70