[commit: ghc] ghc-7.10: Release note entry for `-fdefer-typed-holes` (23a38fe)

git at git.haskell.org git at git.haskell.org
Fri Jan 9 14:14:24 UTC 2015


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

On branch  : ghc-7.10
Link       : http://ghc.haskell.org/trac/ghc/changeset/23a38fe45b0b8afa4df3636d1ed4089c14782e9e/ghc

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

commit 23a38fe45b0b8afa4df3636d1ed4089c14782e9e
Author: Merijn Verstraaten <merijn at inconsistent.nl>
Date:   Fri Jan 9 15:14:38 2015 +0100

    Release note entry for `-fdefer-typed-holes`


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

23a38fe45b0b8afa4df3636d1ed4089c14782e9e
 docs/users_guide/7.10.1-notes.xml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/docs/users_guide/7.10.1-notes.xml b/docs/users_guide/7.10.1-notes.xml
index 58d7bdf..22b1242 100644
--- a/docs/users_guide/7.10.1-notes.xml
+++ b/docs/users_guide/7.10.1-notes.xml
@@ -117,6 +117,23 @@
            </listitem>
            <listitem>
                 <para>
+                    The new <option>-fdefer-typed-holes</option> flag turns
+                    typed hole errors into typed hole warnings that produce
+                    runtime errors when evaluated.
+
+                    The <option>-fno-warn-typed-holes</option> flag was
+                    repurposed to silence the warnings produced when
+                    <option>-fdefer-typed-holes</option> is used. As a result,
+                    it is no longer possible to disable typed holes like it was
+                    in GHC 7.8. This only turned a self-explanatory error into
+                    a cryptic parse error and was thus not very useful.
+
+                    For more details, consult <xref linkend="typed-holes"/> and
+                    <xref linkend="defer-type-errors"/>.
+                </para>
+           </listitem>
+           <listitem>
+                <para>
                     A new warning flag, <option>-fwarn-trustworthy-safe</option>
                     has been added and is turned on with
                     <option>-Wall</option>. It warns when a module that is



More information about the ghc-commits mailing list