[commit: ghc] master: Remove -Wamp flag (33724fc)

git at git.haskell.org git at git.haskell.org
Fri Jun 22 20:00:21 UTC 2018


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

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

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

commit 33724fc75499a3dfaf2ffcc4bf5db6d505df58f4
Author: roland <rsx at bluewin.ch>
Date:   Thu Jun 21 17:01:39 2018 -0400

    Remove -Wamp flag
    
    Test Plan: "ghc -Wamp XXX.hs"  should give "unrecognised warning flag"
    
    Reviewers: bgamari
    
    Reviewed By: bgamari
    
    Subscribers: rwbarton, thomie, carter
    
    GHC Trac Issues: #11477
    
    Differential Revision: https://phabricator.haskell.org/D4785


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

33724fc75499a3dfaf2ffcc4bf5db6d505df58f4
 compiler/main/DynFlags.hs           |  3 ---
 docs/users_guide/using-warnings.rst | 16 ----------------
 2 files changed, 19 deletions(-)

diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index b10740b..2ecbd6e 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -772,7 +772,6 @@ data WarningFlag =
    | Opt_WarnUnusedForalls
    | Opt_WarnWarningsDeprecations
    | Opt_WarnDeprecatedFlags
-   | Opt_WarnAMP -- Introduced in GHC 7.8, obsolete since 7.10
    | Opt_WarnMissingMonadFailInstances -- since 8.0
    | Opt_WarnSemigroup -- since 8.0
    | Opt_WarnDodgyExports
@@ -3774,8 +3773,6 @@ wWarningFlagsDeps = [
 -- Please keep the list of flags below sorted alphabetically
   flagSpec "alternative-layout-rule-transitional"
                                       Opt_WarnAlternativeLayoutRuleTransitional,
-  depFlagSpec "amp"                      Opt_WarnAMP
-    "it has no effect",
   depFlagSpec "auto-orphans"             Opt_WarnAutoOrphans
     "it has no effect",
   flagSpec "cpp-undef"                   Opt_WarnCPPUndef,
diff --git a/docs/users_guide/using-warnings.rst b/docs/users_guide/using-warnings.rst
index 510b56a..575e281 100644
--- a/docs/users_guide/using-warnings.rst
+++ b/docs/users_guide/using-warnings.rst
@@ -410,22 +410,6 @@ of ``-W(no-)*``.
 
     This option is on by default.
 
-.. ghc-flag:: -Wamp
-    :shortdesc: *(deprecated)* warn on definitions conflicting with the
-        Applicative-Monad Proposal (AMP)
-    :type: dynamic
-    :reverse: -Wno-amp
-    :category:
-
-    .. index::
-       single: AMP
-       single: Applicative-Monad Proposal
-
-    This option is deprecated.
-
-    Caused a warning to be emitted when a definition was in conflict with
-    the AMP (Applicative-Monad proosal).
-
 .. ghc-flag:: -Wnoncanonical-monad-instances
     :shortdesc: warn when ``Applicative`` or ``Monad`` instances have
         noncanonical definitions of ``return``, ``pure``, ``(>>)``,



More information about the ghc-commits mailing list