diff options
author | Joachim Breitner <mail@joachim-breitner.de> | 2023-01-17 21:55:55 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-03-24 13:09:43 -0400 |
commit | 46120bb637452be6e16e5dd7091c0b469a5adcd5 (patch) | |
tree | 1da4d82dd87e7a9f35cb5236a47a020191ce0f90 | |
parent | b8d783d24b9a617ad1e3038abeb75d322703ef65 (diff) | |
download | haskell-46120bb637452be6e16e5dd7091c0b469a5adcd5.tar.gz |
User's guide: Improve docs for -Wall
previously it would list the warnings _not_ enabled by -Wall. That’s
unnecessary round-about and was out of date. So let's just name
the relevant warnings (based on `compiler/GHC/Driver/Flags.hs`).
-rw-r--r-- | docs/users_guide/using-warnings.rst | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/docs/users_guide/using-warnings.rst b/docs/users_guide/using-warnings.rst index c7470f7d48..fed29e9132 100644 --- a/docs/users_guide/using-warnings.rst +++ b/docs/users_guide/using-warnings.rst @@ -113,32 +113,24 @@ as ``-Wno-...`` for every individual warning in the group. :category: Turns on all warning options that indicate potentially suspicious - code. The warnings that are *not* enabled by :ghc-flag:`-Wall` are + code. They include all warnings in :ghc-flag:`-Wextra`, plus: .. hlist:: :columns: 3 - * :ghc-flag:`-Wmonomorphism-restriction` - * :ghc-flag:`-Wimplicit-prelude` - * :ghc-flag:`-Wmissing-local-signatures` - * :ghc-flag:`-Wmissing-exported-signatures` - * :ghc-flag:`-Wmissing-export-lists` - * :ghc-flag:`-Wmissing-import-lists` - * :ghc-flag:`-Wmissing-home-modules` - * :ghc-flag:`-Widentities` - * :ghc-flag:`-Wredundant-constraints` - * :ghc-flag:`-Wpartial-fields` - * :ghc-flag:`-Wmissed-specialisations` - * :ghc-flag:`-Wall-missed-specialisations` - * :ghc-flag:`-Wcpp-undef` - * :ghc-flag:`-Wduplicate-constraints` - * :ghc-flag:`-Wmissing-deriving-strategies` - * :ghc-flag:`-Wunused-packages` - * :ghc-flag:`-Wunused-type-patterns` - * :ghc-flag:`-Wsafe` - * :ghc-flag:`-Wimplicit-lift` - * :ghc-flag:`-Wmissing-kind-signatures` - * :ghc-flag:`-Wunticked-promoted-constructors` + * :ghc-flag:`-Whi-shadowing` + * :ghc-flag:`-Wincomplete-record-updates` + * :ghc-flag:`-Wincomplete-uni-patterns` + * :ghc-flag:`-Wmissing-pattern-synonym-signatures` + * :ghc-flag:`-Wmissing-signatures` + * :ghc-flag:`-Wname-shadowing` + * :ghc-flag:`-Worphans` + * :ghc-flag:`-Wredundant-record-wildcards` + * :ghc-flag:`-Wstar-is-type` + * :ghc-flag:`-Wtrustworthy-safe` + * :ghc-flag:`-Wtype-defaults` + * :ghc-flag:`-Wunused-do-bind` + * :ghc-flag:`-Wunused-record-wildcards` .. ghc-flag:: -Weverything :shortdesc: enable all warnings supported by GHC |