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.
Showing
- compiler/ghci/RtClosureInspect.hs 1 addition, 3 deletionscompiler/ghci/RtClosureInspect.hs
- compiler/main/HscMain.hs 5 additions, 4 deletionscompiler/main/HscMain.hs
- compiler/main/HscTypes.hs 4 additions, 5 deletionscompiler/main/HscTypes.hs
- compiler/main/InteractiveEval.hs 3 additions, 3 deletionscompiler/main/InteractiveEval.hs
- compiler/typecheck/TcErrors.hs 2 additions, 2 deletionscompiler/typecheck/TcErrors.hs
- compiler/typecheck/TcRnDriver.hs 26 additions, 15 deletionscompiler/typecheck/TcRnDriver.hs
- compiler/typecheck/TcRnMonad.hs 20 additions, 13 deletionscompiler/typecheck/TcRnMonad.hs
- compiler/typecheck/TcRnTypes.hs 4 additions, 4 deletionscompiler/typecheck/TcRnTypes.hs
- testsuite/tests/ghci.debugger/scripts/break019.stderr 2 additions, 2 deletionstestsuite/tests/ghci.debugger/scripts/break019.stderr
- testsuite/tests/ghci/scripts/T7894.stderr 2 additions, 2 deletionstestsuite/tests/ghci/scripts/T7894.stderr
- testsuite/tests/ghci/scripts/T9140.stdout 1 addition, 1 deletiontestsuite/tests/ghci/scripts/T9140.stdout
- testsuite/tests/ghci/scripts/ghci034.stderr 2 additions, 2 deletionstestsuite/tests/ghci/scripts/ghci034.stderr
Loading
Please register or sign in to comment