Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Francesco Gazzetta
Glasgow Haskell Compiler
Commits
986deaa5
Commit
986deaa5
authored
Jun 17, 2017
by
erdeszt
Committed by
Ben Gamari
Jun 19, 2017
Browse files
Add missing -Wdeprecations flag to the users guide
parent
564a31f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/users_guide/using-warnings.rst
View file @
986deaa5
...
...
@@ -17,6 +17,7 @@ generally likely to indicate bugs in your program. These are:
* :ghc-flag:`-Woverlapping-patterns`
* :ghc-flag:`-Wwarnings-deprecations`
* :ghc-flag:`-Wdeprecations`
* :ghc-flag:`-Wdeprecated-flags`
* :ghc-flag:`-Wunrecognised-pragmas`
* :ghc-flag:`-Wduplicate-constraints`
...
...
@@ -246,6 +247,18 @@ of ``-W(no-)*``.
This option is on by default.
.. ghc-flag:: -Wdeprecations
.. index::
single: deprecations
Causes a warning to be emitted when a module, function or type with
a ``WARNING`` or ``DEPRECATED pragma`` is used. See
:ref:`warning-deprecated-pragma` for more details on the pragmas.
An alias for :ghc-flag:`-Wwarnings-deprecations`.
This option is on by default.
.. ghc-flag:: -Wamp
.. index::
...
...
utils/mkUserGuidePart/Options/Warnings.hs
View file @
986deaa5
...
...
@@ -401,6 +401,13 @@ warningsOptions =
,
flagType
=
DynamicFlag
,
flagReverse
=
"-Wno-warnings-deprecations"
}
,
flag
{
flagName
=
"-Wdeprecations"
,
flagDescription
=
"warn about uses of functions & types that have warnings or "
++
"deprecated pragmas. Alias for :ghc-flag:`-Wwarnings-deprecations`"
,
flagType
=
DynamicFlag
,
flagReverse
=
"-Wno-deprecations"
}
,
flag
{
flagName
=
"-Wamp"
,
flagDescription
=
"*(deprecated)* warn on definitions conflicting with the "
++
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment