[commit: ghc] ghc-8.0: rel-notes: Note the return of -Wmonomorphism-restriction (83c393f)

git at git.haskell.org git at git.haskell.org
Fri Jan 22 12:19:51 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/83c393fbc78e48506d546e62e0a1629edd85cd64/ghc

>---------------------------------------------------------------

commit 83c393fbc78e48506d546e62e0a1629edd85cd64
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
    
    (cherry picked from commit 3883f99c7ea99204a2f15c1e4b7521a4c0b1c527)


>---------------------------------------------------------------

83c393fbc78e48506d546e62e0a1629edd85cd64
 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 364c725..42a02f9 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