Tidy up the error messages we get from TH in stage1 (Trac #8312)
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 6 Nov 2013 16:21:05 +0000 (16:21 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 6 Nov 2013 16:21:05 +0000 (16:21 +0000)
commitbf3b29323d69b2c6f073885fb896dd4a5c346c02
tree510f1c4a46dd368985566226c7055c9738afa0b5
parent5bf435bd01981a65dba7c611cf8da327c8268738
Tidy up the error messages we get from TH in stage1 (Trac #8312)

Instead of panic-ing we now give a sensible message.
There is quite a bit of refactoring here too, removing
several #ifdef GHCI things
13 files changed:
compiler/ghc.cabal.in
compiler/rename/RnExpr.lhs
compiler/rename/RnPat.lhs
compiler/rename/RnSource.lhs
compiler/rename/RnSplice.lhs
compiler/rename/RnSplice.lhs-boot
compiler/rename/RnTypes.lhs
compiler/typecheck/TcAnnotations.lhs
compiler/typecheck/TcExpr.lhs
compiler/typecheck/TcHsType.lhs
compiler/typecheck/TcRnMonad.lhs
compiler/typecheck/TcSplice.lhs
compiler/typecheck/TcSplice.lhs-boot