[commit: ghc] master: For :info, return all matching Names, rather than complaining about ambiguity (cf0a55d)

git at git.haskell.org git at git.haskell.org
Mon Dec 22 13:24:54 UTC 2014


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

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

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

commit cf0a55d76cf945a97fc229b77d6e6177fb14125d
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Mon Dec 22 12:00:10 2014 +0000

    For :info, return all matching Names, rather than complaining about ambiguity
    
    This fixes Trac #9881, and gives more helpful output in the case of ambiguity.
    Certainly more helpful than the positively-misleading error we get right now.


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

cf0a55d76cf945a97fc229b77d6e6177fb14125d
 compiler/rename/RnEnv.hs                           | 81 ++++++++++++++--------
 compiler/typecheck/TcRnDriver.hs                   | 39 +++--------
 .../tests/ghci.debugger/scripts/break019.stderr    |  2 +-
 testsuite/tests/ghci/scripts/T9881.script          |  3 +
 testsuite/tests/ghci/scripts/T9881.stdout          | 32 +++++++++
 testsuite/tests/ghci/scripts/all.T                 |  1 +
 6 files changed, 100 insertions(+), 58 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 cf0a55d76cf945a97fc229b77d6e6177fb14125d


More information about the ghc-commits mailing list