[commit: ghc] master: Deferred type errors now throw TypeError (#10284) (9a3e165)

git at git.haskell.org git at git.haskell.org
Tue Jul 7 17:17:37 UTC 2015


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/9a3e1657db4c0292fc06d6183a802af631c3666a/ghc

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

commit 9a3e1657db4c0292fc06d6183a802af631c3666a
Author: David Kraeutmann <kane at kane.cx>
Date:   Tue Jul 7 16:59:52 2015 +0200

    Deferred type errors now throw TypeError (#10284)
    
    Depends on D864.
    
    Previous behaviour was ErrorCall, which might mask issues in tests
    using -fdefer-type-errors
    
    Signed-off-by: David Kraeutmann <kane at kane.cx>
    
    Test Plan: Test whether the error thrown is indeed TypeError and not
    ErrorCall.
    
    Reviewers: hvr, nomeata, austin
    
    Reviewed By: nomeata, austin
    
    Subscribers: nomeata, simonpj, thomie
    
    Differential Revision: https://phabricator.haskell.org/D866
    
    GHC Trac Issues: #10284


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

9a3e1657db4c0292fc06d6183a802af631c3666a
 compiler/coreSyn/MkCore.hs                         | 10 ++++++++--
 compiler/deSugar/DsBinds.hs                        |  2 +-
 compiler/prelude/PrelNames.hs                      |  5 ++++-
 docs/users_guide/glasgow_exts.xml                  | 12 ++++++------
 libraries/base/Control/Exception.hs                |  1 +
 libraries/base/Control/Exception/Base.hs           | 18 ++++++++++++++++--
 testsuite/tests/typecheck/should_run/T10284.hs     | 17 +++++++++++++++++
 testsuite/tests/typecheck/should_run/T10284.stderr |  5 +++++
 testsuite/tests/typecheck/should_run/T10284.stdout |  5 +++++
 testsuite/tests/typecheck/should_run/all.T         |  1 +
 10 files changed, 64 insertions(+), 12 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 9a3e1657db4c0292fc06d6183a802af631c3666a


More information about the ghc-commits mailing list