[commit: ghc] master: Add notes on change to hGetContents semantics (578bc00)

git at git.haskell.org git at git.haskell.org
Thu Oct 30 16:54:22 UTC 2014


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/578bc0035a58d254e97e94eefcab88f3d74c7537/ghc

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

commit 578bc0035a58d254e97e94eefcab88f3d74c7537
Author: David Feuer <David.Feuer at gmail.com>
Date:   Thu Oct 30 11:50:58 2014 -0500

    Add notes on change to hGetContents semantics
    
    Summary:
    Additionally, move Unicode 7.0 update notice from the compiler
    section to the base libraries section.
    
    Reviewers: austin
    
    Reviewed By: austin
    
    Subscribers: thomie, carter, simonmar
    
    Projects: #ghc
    
    Differential Revision: https://phabricator.haskell.org/D401


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

578bc0035a58d254e97e94eefcab88f3d74c7537
 docs/users_guide/7.10.1-notes.xml | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/docs/users_guide/7.10.1-notes.xml b/docs/users_guide/7.10.1-notes.xml
index 3ca5112..fa7ad1a 100644
--- a/docs/users_guide/7.10.1-notes.xml
+++ b/docs/users_guide/7.10.1-notes.xml
@@ -66,12 +66,6 @@
         <itemizedlist>
             <listitem>
                 <para>
-                    GHC has had its internal Unicode database for
-                    parsing updated to the Unicode 7.0 standard.
-                </para>
-           </listitem>
-            <listitem>
-                <para>
                     GHC now checks that all the language extensions required for
                     the inferred type signatures are explicitly enabled. This
                     means that if any of the type signatures inferred in your
@@ -212,6 +206,22 @@ echo "[]" > package.conf
                     Version number XXXXX (was 4.7.0.0)
                </para>
            </listitem>
+            <listitem>
+                <para>
+                    GHC has had its internal Unicode database for
+                    parsing updated to the Unicode 7.0 standard.
+                </para>
+           </listitem>
+            <listitem>
+                <para>
+                    Attempting to access a portion of the result of
+                    <literal>System.IO.hGetContents</literal> that was not yet
+                    read when the handle was closed now throws an exception.
+                    Previously, a lazy read from a closed handle would simply
+                    end the result string, leading to silent or delayed
+                    failures.
+                </para>
+           </listitem>
        </itemizedlist>
     </sect3>
 



More information about the ghc-commits mailing list