diff options
author | Andreas Abel <andreas.abel@ifi.lmu.de> | 2022-01-26 19:26:46 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-01-27 18:34:54 -0500 |
commit | 7a8547432505dbf080b0f7b57c5e660f50810cf1 (patch) | |
tree | 5d8e901e910740aa728014eed756d3d8b461be92 /compiler | |
parent | 8fd2ac25f2c85e1234c12eae9bd041620f76db41 (diff) | |
download | haskell-7a8547432505dbf080b0f7b57c5e660f50810cf1.tar.gz |
Ctd. #18087: complete :since: info for all warnings in users guide
Some warnings have been there "forever" and I could not trace back the
exact genesis, so I wrote "since at least 5.04".
The flag `helpful-errors` could have been added in 7.2 already. I
wrote 7.4 since I have no 7.2 available and it is not recognized by 7.0.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/GHC/Driver/Flags.hs | 4 | ||||
-rw-r--r-- | compiler/GHC/Driver/Session.hs | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/compiler/GHC/Driver/Flags.hs b/compiler/GHC/Driver/Flags.hs index fa9c79b41d..ce68014d2d 100644 --- a/compiler/GHC/Driver/Flags.hs +++ b/compiler/GHC/Driver/Flags.hs @@ -278,8 +278,8 @@ data GeneralFlag | Opt_LocalGhciHistory | Opt_NoIt | Opt_HelpfulErrors - | Opt_DeferTypeErrors - | Opt_DeferTypedHoles + | Opt_DeferTypeErrors -- Since 7.6 + | Opt_DeferTypedHoles -- Since 7.10 | Opt_DeferOutOfScopeVariables | Opt_PIC -- ^ @-fPIC@ | Opt_PIE -- ^ @-fPIE@ diff --git a/compiler/GHC/Driver/Session.hs b/compiler/GHC/Driver/Session.hs index 6fc71e878a..02b1a637ff 100644 --- a/compiler/GHC/Driver/Session.hs +++ b/compiler/GHC/Driver/Session.hs @@ -291,6 +291,7 @@ import qualified GHC.LanguageExtensions as LangExt -- If you modify anything in this file please make sure that your changes are -- described in the User's Guide. Please update the flag description in the -- users guide (docs/users_guide) whenever you add or change a flag. +-- Please make sure you add ":since:" information to new flags. -- Note [Supporting CLI completion] -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |