[commit: ghc] master: Make the location in TcLclEnv and CtLoc into a RealSrcSpan (d2b6e76)

git at git.haskell.org git at git.haskell.org
Tue Jan 6 13:01:23 UTC 2015


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/d2b6e7671e823fce0c0fbb2bed739fa948a23219/ghc

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

commit d2b6e7671e823fce0c0fbb2bed739fa948a23219
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.


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

d2b6e7671e823fce0c0fbb2bed739fa948a23219
 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 d2b6e7671e823fce0c0fbb2bed739fa948a23219


More information about the ghc-commits mailing list