base: use Show for ErrorCall in uncaughtExceptionHandler
authorEric Seidel <gridaphobe@gmail.com>
Tue, 22 Sep 2015 00:18:56 +0000 (19:18 -0500)
committerAustin Seipp <austin@well-typed.com>
Tue, 22 Sep 2015 00:24:47 +0000 (19:24 -0500)
commit0b852fcf74c65291aeb6357973ecb715735d6383
treed92dddac04d543cb5811a4f689649ef846375f15
parent83e23c1a4cce36de68c3c8323d27f24182b33f34
base: use Show for ErrorCall in uncaughtExceptionHandler

The default top-level exception handler now uses the `Show` instance for
`ErrorCall` when printing exceptions, so it will actually print the out-of-band
data (e.g. `CallStack`s) in compiled binaries, instead of just printing the
error message.

This also updates the hpc submodule to fix the test output.

Reviewed By: austin, thomie

Differential Revision: https://phabricator.haskell.org/D1217
30 files changed:
compiler/deSugar/DsBinds.hs
libraries/base/GHC/Conc/Sync.hs
libraries/base/tests/all.T
libraries/base/tests/readFloat.stderr
libraries/base/tests/topHandler04.hs [new file with mode: 0644]
libraries/base/tests/topHandler04.stderr [new file with mode: 0644]
libraries/hpc
testsuite/driver/testlib.py
testsuite/tests/array/should_run/arr003.stderr
testsuite/tests/array/should_run/arr004.stderr
testsuite/tests/array/should_run/arr007.stderr
testsuite/tests/array/should_run/arr008.stderr
testsuite/tests/codeGen/should_run/T5626.stderr
testsuite/tests/codeGen/should_run/cgrun016.stderr
testsuite/tests/codeGen/should_run/cgrun045.stderr
testsuite/tests/codeGen/should_run/cgrun051.stderr
testsuite/tests/codeGen/should_run/cgrun059.stderr
testsuite/tests/concurrent/should_run/conc021.stderr
testsuite/tests/deriving/should_run/T5628.stderr
testsuite/tests/driver/sigof02/sigof02.stderr
testsuite/tests/driver/sigof02/sigof02m.stderr
testsuite/tests/ffi/should_run/ffi008.stderr
testsuite/tests/ffi/should_run/fptrfail01.stderr
testsuite/tests/ghc-e/should_run/ghc-e005.stderr
testsuite/tests/safeHaskell/safeLanguage/SafeLang09.stderr
testsuite/tests/simplCore/should_fail/T7411.stderr
testsuite/tests/simplCore/should_run/T457.stderr
testsuite/tests/simplCore/should_run/T5587.stderr
testsuite/tests/simplCore/should_run/T5625.stderr
testsuite/tests/stranal/should_run/strun002.stderr