Commit a41830f2 authored by quchen's avatar quchen Committed by Ben Gamari

Mention "-XMonadFailDesugaring" in the docs

Reviewers: austin, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1496
parent 971f2c9d
......@@ -504,7 +504,7 @@ data WarningFlag =
| Opt_WarnContextQuantification
| Opt_WarnWarningsDeprecations
| Opt_WarnDeprecatedFlags
| Opt_WarnAMP
| Opt_WarnAMP -- Introduced in GHC 7.8, obsolete since 7.10
| Opt_WarnMissingMonadFailInstance
| Opt_WarnDodgyExports
| Opt_WarnDodgyImports
......@@ -2873,7 +2873,7 @@ fWarningFlags = [
flagSpec "warn-alternative-layout-rule-transitional"
Opt_WarnAlternativeLayoutRuleTransitional,
flagSpec' "warn-amp" Opt_WarnAMP
(\_ -> deprecate "it has no effect, and will be removed in GHC 7.12"),
(\_ -> deprecate "it has no effect"),
flagSpec' "warn-auto-orphans" Opt_WarnAutoOrphans
(\_ -> deprecate "it has no effect"),
flagSpec "warn-deferred-type-errors" Opt_WarnDeferredTypeErrors,
......
......@@ -1689,9 +1689,10 @@ New monadic failure desugaring mechanism
.. index::
single: -XMonadFailDesugaring option
Switch desugaring of ``do``-blocks to use ``MonadFail.fail`` instead of
``Monad.fail``. This will be the default behaviour in a future GHC release,
under the MonadFail Proposal (MFP).
The ``-XMonadFailDesugaring`` extension switches the desugaring of
``do``-blocks to use ``MonadFail.fail`` instead of ``Monad.fail``. This will
eventually be the default behaviour in a future GHC release, under the
MonadFail Proposal (MFP).
This extension is temporary, and will be deprecated in a future release. It is
included so that library authors have a hard check for whether their code
......
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