[commit: ghc] master: Further improve error handling in TcRn monad (2fdf21b)

git at git.haskell.org git at git.haskell.org
Thu Oct 13 11:47:34 UTC 2016


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/2fdf21bf26386ac5558ed5b95105bcf78e31f093/ghc

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

commit 2fdf21bf26386ac5558ed5b95105bcf78e31f093
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.)


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

2fdf21bf26386ac5558ed5b95105bcf78e31f093
 compiler/typecheck/TcRnMonad.hs                    | 65 ++++++++++++++--------
 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, 58 insertions(+), 26 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 2fdf21bf26386ac5558ed5b95105bcf78e31f093


More information about the ghc-commits mailing list