[commit: ghc] master: Give helpful advice when a fully qualified name is not in scope (e66f79d)

git at git.haskell.org git at git.haskell.org
Fri Nov 13 09:14:47 UTC 2015


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

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

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

commit e66f79dfb22031dd3f75dd3eb341e8269ab51d83
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Tue Nov 10 17:07:10 2015 +0100

    Give helpful advice when a fully qualified name is not in scope
    
    This implements #11071. It needs to thread through a GlobalRdrEnv
    corresponding to the export list of the module if its exports were not
    restricted.
    
    A refactoring of ImportedModsVal into a proper data type follows.
    
    Differential Revision: https://phabricator.haskell.org/D1462


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

e66f79dfb22031dd3f75dd3eb341e8269ab51d83
 compiler/iface/MkIface.hs                          |   6 +-
 compiler/main/HscMain.hs                           |   4 +-
 compiler/main/HscTypes.hs                          |   2 +-
 compiler/rename/RnEnv.hs                           | 113 ++++++++++++++++++++-
 compiler/rename/RnNames.hs                         |  16 +--
 compiler/typecheck/TcRnTypes.hs                    |   4 +-
 compiler/utils/Outputable.hs                       |   8 +-
 testsuite/tests/ghc-api/annotations/T10313.stderr  |  12 ++-
 testsuite/tests/ghc-api/annotations/T10399.stderr  |  12 ++-
 testsuite/tests/ghci/scripts/T2452.stderr          |   4 +-
 testsuite/tests/ghci/scripts/T8639.stderr          |   3 +-
 testsuite/tests/ghci/scripts/ghci036.stderr        |   4 +-
 testsuite/tests/module/mod134.stderr               |   4 +-
 testsuite/tests/module/mod62.stderr                |   5 +-
 testsuite/tests/module/mod73.stderr                |   3 +-
 testsuite/tests/module/mod74.stderr                |   4 +-
 testsuite/tests/module/mod88.stderr                |   5 +-
 .../tests/rename/prog002/rename.prog002.stderr     |   5 +-
 testsuite/tests/rename/should_fail/T10781.stderr   |   4 +-
 testsuite/tests/rename/should_fail/T11071.hs       |  28 +++++
 testsuite/tests/rename/should_fail/T11071.stderr   |  53 ++++++++++
 testsuite/tests/rename/should_fail/T2901.stderr    |   7 +-
 testsuite/tests/rename/should_fail/T5657.stderr    |   6 +-
 testsuite/tests/rename/should_fail/T5892b.stderr   |   4 +-
 testsuite/tests/rename/should_fail/all.T           |   1 +
 .../tests/rename/should_fail/rnfail030.stderr      |   5 +-
 .../tests/rename/should_fail/rnfail031.stderr      |   5 +-
 .../tests/rename/should_fail/rnfail032.stderr      |   4 +-
 .../tests/rename/should_fail/rnfail033.stderr      |   4 +-
 .../tests/rename/should_fail/rnfail034.stderr      |   5 +-
 testsuite/tests/safeHaskell/ghci/p4.stderr         |   1 +
 31 files changed, 295 insertions(+), 46 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 e66f79dfb22031dd3f75dd3eb341e8269ab51d83


More information about the ghc-commits mailing list