[commit: ghc] ghc-7.8: Implicit parameters should not be allowed in class and instance declarations (4b1814f)

git at git.haskell.org git at git.haskell.org
Mon Mar 24 12:04:38 UTC 2014


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

On branch  : ghc-7.8
Link       : http://ghc.haskell.org/trac/ghc/changeset/4b1814f0cdd25711f4ae93aa1a9157815a97bde8/ghc

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

commit 4b1814f0cdd25711f4ae93aa1a9157815a97bde8
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.
    
    (cherry picked from commit a8b7b28cdb98d14c6fb43d5ad3293fd4a5c1f8b4)
    
    Conflicts:
    	testsuite/tests/typecheck/should_fail/all.T


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

4b1814f0cdd25711f4ae93aa1a9157815a97bde8
 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 4b1814f0cdd25711f4ae93aa1a9157815a97bde8


More information about the ghc-commits mailing list