[commit: ghc] wip/exceptions-note, wip/hadrian-import-packages, wip/splice-parsing, wip/trac-16270: Add -fdefer-diagnostics to defer and group diagnostic messages in make-mode (0593e93)

git at git.haskell.org git at git.haskell.org
Sat Feb 2 08:59:47 UTC 2019


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

On branches: wip/exceptions-note,wip/hadrian-import-packages,wip/splice-parsing,wip/trac-16270
Link       : http://ghc.haskell.org/trac/ghc/changeset/0593e9389c4e5fd4386ebd74a746ef9659401ac6/ghc

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

commit 0593e9389c4e5fd4386ebd74a746ef9659401ac6
Author: Zejun Wu <watashi at fb.com>
Date:   Fri Dec 28 00:10:22 2018 -0800

    Add -fdefer-diagnostics to defer and group diagnostic messages in make-mode
    
    When loading many modules in parallel there can a lot of warnings and
    errors get mixed up with regular output. When the compilation fails,
    the relevant error message can be thousands of lines backward and is
    hard to find. When the compilation successes, warning message is likely
    to be ignored as it is not seen. We can address this by deferring the
    warning and error message after the compilation. We also put errors
    after warnings so it is more visible.
    
    This idea was originally proposed by Bartosz Nitka in
    https://phabricator.haskell.org/D4219.


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

0593e9389c4e5fd4386ebd74a746ef9659401ac6
 compiler/main/DynFlags.hs                          |  2 ++
 compiler/main/GhcMake.hs                           | 39 ++++++++++++++++++++--
 docs/users_guide/using.rst                         | 12 +++++++
 testsuite/tests/ghci/prog018/A.hs                  |  8 +++++
 testsuite/tests/ghci/prog018/B.hs                  |  7 ++++
 testsuite/tests/ghci/prog018/C.hs                  |  6 ++++
 .../should_compile => ghci/prog018}/Makefile       |  0
 testsuite/tests/ghci/prog018/prog018.T             |  3 ++
 testsuite/tests/ghci/prog018/prog018.script        |  4 +++
 testsuite/tests/ghci/prog018/prog018.stdout        | 23 +++++++++++++
 10 files changed, 102 insertions(+), 2 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 0593e9389c4e5fd4386ebd74a746ef9659401ac6


More information about the ghc-commits mailing list