• barrucadu's avatar
    Print which warning-flag controls an emitted warning · bb5afd3c
    barrucadu authored
    Both gcc and clang tell which warning flag a reported warning can be
    controlled with, this patch makes ghc do the same. More generally, this
    allows for annotated compiler output, where an optional annotation is
    displayed in brackets after the severity.
    This also adds a new flag `-f(no-)show-warning-groups` to control
    whether to show which warning-group (such as `-Wall` or `-Wcompat`)
    a warning belongs to. This flag is on by default.
    This implements #10752
    Reviewed By: quchen, bgamari, hvr
    Differential Revision: https://phabricator.haskell.org/D1943
UI.hs 138 KB