• Simon Peyton Jones's avatar
    Tidy up error suppression · f49f90bb
    Simon Peyton Jones authored
    Trac #15152 showed that when a flag turned an error into a warning, we
    were still (alas) suppressing subequent errors; includign their
    essential addTcEvBind.  That led (rightly) to a Lint error.
    
    This patch fixes it, and incidentally tidies up an ad-hoc special
    case of out-of-scope variables (see the old binding for
    'out_of_scope_killer' in 'tryReporters').
    
    No test, because the problem was only shown up when turning
    inaccessible code into a warning.
    f49f90bb
TcErrors.hs 145 KB