Implicit parameters should not be allowed in class and instance declarations
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 21 Mar 2014 15:55:39 +0000 (15:55 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 24 Mar 2014 08:28:03 +0000 (08:28 +0000)
commita8b7b28cdb98d14c6fb43d5ad3293fd4a5c1f8b4
treee3af8373f4264543d11391d26a3f1ad7d9c09fa2
parent6ae678e31a5fdd3b0bd1f8613fe164012bb630f4
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.
compiler/typecheck/TcValidity.lhs
testsuite/tests/typecheck/should_fail/T7019.stderr
testsuite/tests/typecheck/should_fail/T7019a.stderr
testsuite/tests/typecheck/should_fail/T8912.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T8912.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T
testsuite/tests/typecheck/should_fail/tcfail041.stderr
testsuite/tests/typecheck/should_fail/tcfail211.stderr