[commit: ghc] master: Turn -XTypeHoles into a (on by default) warning (235fd88)

git at git.haskell.org git at git.haskell.org
Wed Jan 15 02:20:00 UTC 2014


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

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

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

commit 235fd88a9a35a6ca1aed70ff71291d7b433e45e4
Author: Austin Seipp <austin at well-typed.com>
Date:   Tue Jan 14 20:16:26 2014 -0600

    Turn -XTypeHoles into a (on by default) warning
    
    After some discussion on ghc-devs@ and elsewhere, it seemed favorable to
    make this change as type holes don't let any invalid programs though,
    they merely change what the compiler reports in case of certain errors
    (namely unbound occurrences, or _ appearing on a LHS.)
    
    Now, the warning mechanism is controlled by -f[no-]warn-type-errors,
    just like any other regular warning. Again, on by default.
    
    The documentation and tests have been updated accordingly.
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>


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

235fd88a9a35a6ca1aed70ff71291d7b433e45e4
 compiler/main/DynFlags.hs                          |    5 +++--
 compiler/rename/RnExpr.lhs                         |    4 ++--
 docs/users_guide/7.8.1-notes.xml                   |   15 ++++++-------
 docs/users_guide/flags.xml                         |   13 ++++++------
 docs/users_guide/glasgow_exts.xml                  |   11 +++++-----
 docs/users_guide/using.xml                         |   20 ++++++++++++++++++
 testsuite/tests/driver/T4437.hs                    |    1 -
 testsuite/tests/module/mod71.hs                    |    1 +
 testsuite/tests/module/mod71.stderr                |    2 +-
 testsuite/tests/rename/should_fail/rnfail016.hs    |    1 +
 .../tests/rename/should_fail/rnfail016.stderr      |    6 +++---
 testsuite/tests/typecheck/should_compile/holes.hs  |    2 --
 .../tests/typecheck/should_compile/holes.stderr    |   22 ++++++++++----------
 testsuite/tests/typecheck/should_compile/holes2.hs |    2 --
 .../tests/typecheck/should_compile/holes2.stderr   |    6 +++---
 testsuite/tests/typecheck/should_compile/holes3.hs |    2 --
 .../tests/typecheck/should_compile/holes3.stderr   |   22 ++++++++++----------
 17 files changed, 77 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 235fd88a9a35a6ca1aed70ff71291d7b433e45e4


More information about the ghc-commits mailing list