[commit: ghc] master: Use the correct origin in SectionL and Section R (b8c29bc)
git at git.haskell.org
git at git.haskell.org
Thu Feb 16 14:25:25 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/b8c29bc9ccd541478b6c1b9d04ca940b9d74cf96/ghc
>---------------------------------------------------------------
commit b8c29bc9ccd541478b6c1b9d04ca940b9d74cf96
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Thu Feb 16 12:51:36 2017 +0000
Use the correct origin in SectionL and Section R
This fixes Trac #13285.
The CallStack stuff is all driven by a CtOrigin of (OccurenceOf f),
and we were instead using SectionOrigin. Boo!
Easily fixed; and I did a little refactoring as usual.
>---------------------------------------------------------------
b8c29bc9ccd541478b6c1b9d04ca940b9d74cf96
compiler/typecheck/TcExpr.hs | 22 +++++++++++-----
compiler/typecheck/TcMatches.hs | 2 +-
compiler/typecheck/TcPat.hs | 2 +-
compiler/typecheck/TcRnDriver.hs | 2 +-
compiler/typecheck/TcRnTypes.hs | 29 ++++++++++++----------
testsuite/tests/deSugar/should_run/T13285.hs | 12 +++++++++
.../should_run/T13285.stdout} | 1 +
testsuite/tests/deSugar/should_run/all.T | 1 +
testsuite/tests/parser/should_compile/T2245.stderr | 2 +-
9 files changed, 50 insertions(+), 23 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 b8c29bc9ccd541478b6c1b9d04ca940b9d74cf96
More information about the ghc-commits
mailing list