[commit: ghc] master: Improve error reporting for "relevant bindings" again (Trac #8233) (9039108)
git at git.haskell.org
git at git.haskell.org
Tue Sep 10 18:57:24 CEST 2013
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/9039108b2d9ad746d47f3917cdfb7a44a4a41ccf/ghc
>---------------------------------------------------------------
commit 9039108b2d9ad746d47f3917cdfb7a44a4a41ccf
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Tue Sep 10 17:55:59 2013 +0100
Improve error reporting for "relevant bindings" again (Trac #8233)
This patch makes a number of related improvements:
* Displays relevant bindings in innermost-first order.
The inner ones are closer to the error.
* Does not display syntactically top-level bindings,
unless you say -fno-max-relevant-bindings.
This is what Trac #8233 was mainly about
* Makes the TopLevelFlag in a TcIdBinder really mean
"syntactically top level". It was a bit vague before.
There was some associated simplification, because we no longer
need to pas a TopLevelFlag to tcMonoBinds and friends.
>---------------------------------------------------------------
9039108b2d9ad746d47f3917cdfb7a44a4a41ccf
compiler/typecheck/TcBinds.lhs | 57 +++++++++++++++++++------------------
compiler/typecheck/TcClassDcl.lhs | 2 +-
compiler/typecheck/TcEnv.lhs | 6 ++--
compiler/typecheck/TcErrors.lhs | 19 ++++++++++---
compiler/typecheck/TcInstDcls.lhs | 2 +-
compiler/typecheck/TcRnTypes.lhs | 8 +++++-
docs/users_guide/using.xml | 4 ++-
7 files changed, 59 insertions(+), 39 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 9039108b2d9ad746d47f3917cdfb7a44a4a41ccf
More information about the ghc-commits
mailing list