[commit: ghc] master: rel-notes: Note the return of -Wmonomorphism-restriction (3883f99)
git at git.haskell.org
git at git.haskell.org
Thu Jan 21 13:58:03 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/3883f99c7ea99204a2f15c1e4b7521a4c0b1c527/ghc
>---------------------------------------------------------------
commit 3883f99c7ea99204a2f15c1e4b7521a4c0b1c527
Author: Ben Gamari <ben at smart-cactus.org>
Date: Thu Jan 21 14:49:01 2016 +0100
rel-notes: Note the return of -Wmonomorphism-restriction
>---------------------------------------------------------------
3883f99c7ea99204a2f15c1e4b7521a4c0b1c527
docs/users_guide/8.0.1-notes.rst | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/docs/users_guide/8.0.1-notes.rst b/docs/users_guide/8.0.1-notes.rst
index c36c721..e8a2c0e 100644
--- a/docs/users_guide/8.0.1-notes.rst
+++ b/docs/users_guide/8.0.1-notes.rst
@@ -200,7 +200,7 @@ Compiler
compilers. The old ``-f``-based warning flags will remain functional for
the forseeable future.
-- Added the option :ghc-flag:`-dth-dec-file`. This dumps out a .th.hs file of
+- Added the option :ghc-flag:`-dth-dec-file`. This dumps out a ``.th.hs`` file of
all Template Haskell declarations in a corresponding .hs file. The
idea is that application developers can check this into their
repository so that they can grep for identifiers used elsewhere that
@@ -210,6 +210,13 @@ Compiler
code that does not exist in the .hs file and a comment for the splice
location in the original file.
+- After a long hiatus (see :ghc-ticket:`10935`) the
+ :ghc-flag:`-Wmonomorphism-restriction` (formerly
+ :ghc-flag:`-fwarn-monomorphism-restriction`) flag has returned.
+ The functionality of this flag was inadvertently removed by a commit in 2010;
+ this has been fixed and the flag should now issue warnings as it
+ previously did.
+
- Added the option :ghc-flag:`-fprint-expanded-types`. When enabled, GHC also
prints type-synonym-expanded types in type errors.
More information about the ghc-commits
mailing list