[commit: ghc] master: Allow deferred type error warnings to be suppressed (f753cf1)

git at git.haskell.org git at git.haskell.org
Tue Jul 7 17:17:30 UTC 2015


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

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

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

commit f753cf11eb9e310b54b08d9a1ea1d11540d8eb69
Author: David Kraeutmann <kane at kane.cx>
Date:   Tue Jul 7 16:59:34 2015 +0200

    Allow deferred type error warnings to be suppressed
    
    Adds a flag -fwarn-deferred-type-errors similar to -fwarn-typed-holes.
    Changes the boolean flag of -fdefer-type-errors to a 3-state flag
    similar to the one used by -fdefer-typed-holes/-fwarn-typed-holes.
    
    Test Plan: Since only the absence of deferred type error warnings when
    -fno-warn-deferred-type-errors is passed has to be tested, I duplicated
    a test case checking -fdefer-type-errors and adjusted it accordingly.
    
    Reviewers: nomeata, simonpj, austin, thomie, bgamari, hvr
    
    Reviewed By: nomeata, simonpj, austin, thomie, bgamari, hvr
    
    Subscribers: bgamari, simonpj, nomeata, thomie
    
    Projects: #ghc
    
    Differential Revision: https://phabricator.haskell.org/D864
    
    GHC Trac Issues: #10283


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

f753cf11eb9e310b54b08d9a1ea1d11540d8eb69
 compiler/main/DynFlags.hs                          |  3 ++
 compiler/typecheck/TcErrors.hs                     | 55 +++++++++++++---------
 docs/users_guide/flags.xml                         | 13 ++++-
 docs/users_guide/glasgow_exts.xml                  |  3 +-
 docs/users_guide/using.xml                         | 11 +++++
 .../should_compile/{T9834.hs => T10283.hs}         |  2 +-
 testsuite/tests/typecheck/should_compile/all.T     |  1 +
 7 files changed, 64 insertions(+), 24 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 f753cf11eb9e310b54b08d9a1ea1d11540d8eb69


More information about the ghc-commits mailing list