[commit: ghc] master: Implicit parameters should not be allowed in class and instance declarations (a8b7b28)

git at git.haskell.org git at git.haskell.org
Mon Mar 24 10:27:08 UTC 2014


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

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

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

commit a8b7b28cdb98d14c6fb43d5ad3293fd4a5c1f8b4
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Mar 21 15:55:39 2014 +0000

    Implicit parameters should not be allowed in class and instance declarations
    
    Trac #8912 pointed out that GHC 7.4 and 7.6 have omitted this test, although
    7.2 and earlier had it.  This patch puts the test back in, and refactors a
    little.


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

a8b7b28cdb98d14c6fb43d5ad3293fd4a5c1f8b4
 compiler/typecheck/TcValidity.lhs                  |   72 +++++++++++---------
 testsuite/tests/typecheck/should_fail/T7019.stderr |    2 +-
 .../tests/typecheck/should_fail/T7019a.stderr      |    3 +-
 testsuite/tests/typecheck/should_fail/T8912.hs     |   11 +++
 testsuite/tests/typecheck/should_fail/T8912.stderr |    6 ++
 testsuite/tests/typecheck/should_fail/all.T        |    1 +
 .../tests/typecheck/should_fail/tcfail041.stderr   |    9 +--
 .../tests/typecheck/should_fail/tcfail211.stderr   |   10 +--
 8 files changed, 70 insertions(+), 44 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 a8b7b28cdb98d14c6fb43d5ad3293fd4a5c1f8b4


More information about the ghc-commits mailing list