[commit: ghc] ghc-8.0: Further improve error handling in TcRn monad (1ef2742)

git at git.haskell.org git at git.haskell.org
Fri Oct 14 17:29:08 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/1ef274298978369e2e07b5c43e635a5ca529a0af/ghc

>---------------------------------------------------------------

commit 1ef274298978369e2e07b5c43e635a5ca529a0af
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Oct 13 12:24:53 2016 +0100

    Further improve error handling in TcRn monad
    
    This patch builds on the one for Trac #12124, by dealing properly
    with out-of-scope "hole" errors.
    
    This fixes Trac #12529. The hard error coming from visible type application
    is still there, but the out-of-scope error is no longer suppressed.
    
    (Arguably the VTA message should be suppressed somehow, but that's a
    battle for another day.)
    
    (cherry picked from commit 2fdf21bf26386ac5558ed5b95105bcf78e31f093)


>---------------------------------------------------------------

1ef274298978369e2e07b5c43e635a5ca529a0af
 compiler/typecheck/TcRnMonad.hs                    | 79 +++++++++++++++-------
 compiler/typecheck/TcRnTypes.hs                    |  5 +-
 .../T11456.hs => typecheck/should_fail/T12529.hs}  |  4 +-
 .../tests/typecheck/should_fail/T12529.stderr      |  8 +++
 testsuite/tests/typecheck/should_fail/all.T        |  2 +
 5 files changed, 69 insertions(+), 29 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 1ef274298978369e2e07b5c43e635a5ca529a0af


More information about the ghc-commits mailing list