[commit: ghc] master: Defer errors in derived instances (74ae598)

git at git.haskell.org git at git.haskell.org
Fri Sep 26 11:34:55 UTC 2014


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/74ae59896e4222a8115f5548845f13495f5bb76e/ghc

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

commit 74ae59896e4222a8115f5548845f13495f5bb76e
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Sep 24 11:22:52 2014 +0100

    Defer errors in derived instances
    
    Fixes Trac #9576.  Turned out to be pretty easy.


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

74ae59896e4222a8115f5548845f13495f5bb76e
 compiler/typecheck/TcDeriv.lhs                     | 18 ++++++++-------
 compiler/typecheck/TcEnv.lhs                       |  7 +++---
 compiler/typecheck/TcGenGenerics.lhs               |  6 ++---
 compiler/typecheck/TcInstDcls.lhs                  | 26 ++++++++++------------
 testsuite/tests/deriving/should_fail/T4846.stderr  |  2 +-
 .../tests/deriving/should_fail/drvfail011.stderr   |  2 +-
 testsuite/tests/deriving/should_run/T9576.hs       |  9 ++++++++
 testsuite/tests/deriving/should_run/T9576.stderr   | 11 +++++++++
 .../tests/deriving/should_run/T9576.stdout         |  0
 testsuite/tests/deriving/should_run/all.T          |  1 +
 10 files changed, 52 insertions(+), 30 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 74ae59896e4222a8115f5548845f13495f5bb76e


More information about the ghc-commits mailing list