summaryrefslogtreecommitdiff
path: root/docs/users_guide/separate_compilation.rst
diff options
context:
space:
mode:
authorDavid Luposchainsky <dluposchainsky@gmail.com>2015-12-16 11:42:00 +0100
committerHerbert Valerio Riedel <hvr@gnu.org>2015-12-16 12:31:35 +0100
commit2206fa8cdb1209320f3690690b610320b4810de6 (patch)
tree6b2ffe50753ed62035716f6fba9e0d0a4ff51b26 /docs/users_guide/separate_compilation.rst
parent3a48e6ef80e4bf3d84814316cace259147f67df2 (diff)
downloadhaskell-2206fa8cdb1209320f3690690b610320b4810de6.tar.gz
Add `-W(no-)xxx` aliases for `-f(no-)warn-xxx` flags
This also updates the user's guide to refer to the `-W`-based warning flags by default. Quoting the release note entry: | Warnings can now be controlled with `-W(no-)...` flags in addition to | the old `-f(no-)warn...` ones. This was done as the first part of a | rewrite of the warning system to provide better control over warnings, | better warning messages, and more common syntax compared to other | compilers. The old `-fwarn...`-based warning flags will remain | functional for the forseeable future. This is part of https://ghc.haskell.org/wiki/Design/Warnings and addresses #11218 Reviewed By: hvr, bgamari Differential Revision: https://phabricator.haskell.org/D1613
Diffstat (limited to 'docs/users_guide/separate_compilation.rst')
-rw-r--r--docs/users_guide/separate_compilation.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/users_guide/separate_compilation.rst b/docs/users_guide/separate_compilation.rst
index c8285d5e0d..074aad047f 100644
--- a/docs/users_guide/separate_compilation.rst
+++ b/docs/users_guide/separate_compilation.rst
@@ -1071,9 +1071,9 @@ module:
of the variables, type constructors, or classes that are free in the
left hand side of the rule are declared in ``M``.
-If you use the flag ``-fwarn-orphans``, GHC will warn you if you are
+If you use the flag ``-Worphans``, GHC will warn you if you are
creating an orphan module. Like any warning, you can switch the warning
-off with ``-fno-warn-orphans``, and ``-Werror`` will make the
+off with ``-Wno-orphans``, and ``-Werror`` will make the
compilation fail if the warning is issued.
You can identify an orphan module by looking in its interface file,