[commit: ghc] ghc-7.10: Make the location in TcLclEnv and CtLoc into a RealSrcSpan (00cd617)

git at git.haskell.org git at git.haskell.org
Wed Jul 15 09:32:14 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-7.10
Link       : http://ghc.haskell.org/trac/ghc/changeset/00cd6173a620ef99739d97ac843258fee8e2dee9/ghc

>---------------------------------------------------------------

commit 00cd6173a620ef99739d97ac843258fee8e2dee9
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Tue Jan 6 12:28:37 2015 +0000

    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.


>---------------------------------------------------------------

00cd6173a620ef99739d97ac843258fee8e2dee9
 compiler/ghci/RtClosureInspect.hs                  |  4 +--
 compiler/main/HscMain.hs                           |  9 ++---
 compiler/main/HscTypes.hs                          |  9 +++--
 compiler/main/InteractiveEval.hs                   |  6 ++--
 compiler/typecheck/TcErrors.hs                     |  4 +--
 compiler/typecheck/TcRnDriver.hs                   | 41 ++++++++++++++--------
 compiler/typecheck/TcRnMonad.hs                    | 33 ++++++++++-------
 compiler/typecheck/TcRnTypes.hs                    |  8 ++---
 .../tests/ghci.debugger/scripts/break019.stderr    |  2 +-
 testsuite/tests/ghci/scripts/T7894.stderr          |  2 +-
 testsuite/tests/ghci/scripts/T9140.stdout          |  2 +-
 testsuite/tests/ghci/scripts/ghci034.stderr        |  2 +-
 12 files changed, 69 insertions(+), 53 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 00cd6173a620ef99739d97ac843258fee8e2dee9


More information about the ghc-commits mailing list