Deferred type errors now throw TypeError (#10284)
authorDavid Kraeutmann <kane@kane.cx>
Tue, 7 Jul 2015 14:59:52 +0000 (16:59 +0200)
committerBen Gamari <ben@smart-cactus.org>
Tue, 7 Jul 2015 14:59:52 +0000 (16:59 +0200)
commit9a3e1657db4c0292fc06d6183a802af631c3666a
treef18d0fb8619e580a69ce99c4c107bd9b43450180
parent31580e2c81543a58c0d352154c6109d843978cdf
Deferred type errors now throw TypeError (#10284)

Depends on D864.

Previous behaviour was ErrorCall, which might mask issues in tests
using -fdefer-type-errors

Signed-off-by: David Kraeutmann <kane@kane.cx>
Test Plan: Test whether the error thrown is indeed TypeError and not
ErrorCall.

Reviewers: hvr, nomeata, austin

Reviewed By: nomeata, austin

Subscribers: nomeata, simonpj, thomie

Differential Revision: https://phabricator.haskell.org/D866

GHC Trac Issues: #10284
compiler/coreSyn/MkCore.hs
compiler/deSugar/DsBinds.hs
compiler/prelude/PrelNames.hs
docs/users_guide/glasgow_exts.xml
libraries/base/Control/Exception.hs
libraries/base/Control/Exception/Base.hs
testsuite/tests/typecheck/should_run/T10284.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_run/T10284.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_run/T10284.stdout [new file with mode: 0644]
testsuite/tests/typecheck/should_run/all.T