Commit 33724fc7 authored by Roland Senn's avatar Roland Senn Committed by Ben Gamari

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
parent 67c422ca
......@@ -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,
......
......@@ -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``, ``(>>)``,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment