Make the location in TcLclEnv and CtLoc into a RealSrcSpan
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 6 Jan 2015 12:28:37 +0000 (12:28 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 6 Jan 2015 12:29:35 +0000 (12:29 +0000)
commitd2b6e7671e823fce0c0fbb2bed739fa948a23219
tree95dbb9960e38677c8810bb9f747f055d7e60a560
parent696f2cfdea4ab87cc457b141323bb25ab4afe795
Make the location in TcLclEnv and CtLoc into a RealSrcSpan

Previously it was a SrcSpan, which can be an UnhelpulSrcSpan,
but actually for TcLclEnv and CtLoc we always know it is
a real source location, and it's good to make the types
reflect that fact.

There is a continuing slight awkwardness (not new with this
patch) about what "file name" to use for GHCi code.  Current
we say "<interactive>" which seems just about OK.
12 files changed:
compiler/ghci/RtClosureInspect.hs
compiler/main/HscMain.hs
compiler/main/HscTypes.hs
compiler/main/InteractiveEval.hs
compiler/typecheck/TcErrors.hs
compiler/typecheck/TcRnDriver.hs
compiler/typecheck/TcRnMonad.hs
compiler/typecheck/TcRnTypes.hs
testsuite/tests/ghci.debugger/scripts/break019.stderr
testsuite/tests/ghci/scripts/T7894.stderr
testsuite/tests/ghci/scripts/T9140.stdout
testsuite/tests/ghci/scripts/ghci034.stderr