Improve constraint-used-as-type error msg
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 23 Nov 2015 08:35:44 +0000 (08:35 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 23 Nov 2015 17:22:15 +0000 (17:22 +0000)
commit5955510e5f57464b1f4f42b510e3558d6e691380
tree93ee8e103c2f09adc832eabb5178c337f2e33e95
parent947156236aeced67bb53db7f963013594d3b7bc3
Improve constraint-used-as-type error msg

This responds to Trac #11112 by improving the error message
when the kind checker discovers something of kind Constraint
used when a type is expected
compiler/typecheck/TcHsType.hs
testsuite/tests/indexed-types/should_fail/SimpleFail14.stderr
testsuite/tests/typecheck/should_fail/T11112.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T11112.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T3540.stderr
testsuite/tests/typecheck/should_fail/all.T
testsuite/tests/typecheck/should_fail/tcfail057.stderr
testsuite/tests/typecheck/should_fail/tcfail146.stderr