[commit: ghc] master: Improve error message in Trac #8883 (56f8777)

git at git.haskell.org git at git.haskell.org
Wed Jun 11 19:57:12 UTC 2014


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/56f8777f99d9fd849ca6f1151fead3f62707f308/ghc

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

commit 56f8777f99d9fd849ca6f1151fead3f62707f308
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Tue Jun 10 17:50:22 2014 +0100

    Improve error message in Trac #8883
    
    The improvement is to report the inferred type in the error message,
    as suggested in email on ghc-deves (10 Jun 14).


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

56f8777f99d9fd849ca6f1151fead3f62707f308
 compiler/typecheck/TcBinds.lhs                     | 96 +++++++++++++---------
 compiler/typecheck/TcValidity.lhs                  |  3 +
 .../tests/indexed-types/should_fail/T1897b.stderr  |  4 +-
 .../tests/indexed-types/should_fail/T2693.stderr   |  3 +-
 .../tests/indexed-types/should_fail/T9171.stderr   |  5 +-
 .../tests/typecheck/should_compile/tc168.stderr    |  4 +-
 .../tests/typecheck/should_fail/T1897a.stderr      |  4 +-
 testsuite/tests/typecheck/should_fail/T8142.stderr |  4 +-
 testsuite/tests/typecheck/should_fail/T8883.stderr |  9 +-
 testsuite/tests/typecheck/should_fail/all.T        |  1 +
 .../tests/typecheck/should_fail/tcfail080.stderr   |  6 +-
 11 files changed, 82 insertions(+), 57 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 56f8777f99d9fd849ca6f1151fead3f62707f308


More information about the ghc-commits mailing list