Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
986deaa5
Commit
986deaa5
authored
Jun 17, 2017
by
erdeszt
Committed by
Ben Gamari
Jun 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing -Wdeprecations flag to the users guide
parent
564a31f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
docs/users_guide/using-warnings.rst
docs/users_guide/using-warnings.rst
+13
-0
utils/mkUserGuidePart/Options/Warnings.hs
utils/mkUserGuidePart/Options/Warnings.hs
+7
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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