summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-08-07 19:31:39 +0000
committerIan Lynagh <igloo@earth.li>2007-08-07 19:31:39 +0000
commit67b3443720b8dd58472cb92bc167adc97b935da4 (patch)
tree23b7d5fcebf53fe36289789dc7a75f798fe00acd /docs
parentb4a94ccf25eea5377e4f0c214225c3d7e2c35bde (diff)
downloadhaskell-67b3443720b8dd58472cb92bc167adc97b935da4.tar.gz
Add blurb in the user guide re stdout buffering differing between GHC and GHCi
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/ghci.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml
index c0167bfe09..86bfa8fc0c 100644
--- a/docs/users_guide/ghci.xml
+++ b/docs/users_guide/ghci.xml
@@ -2587,6 +2587,18 @@ Prelude> :set -fno-glasgow-exts
<para>See <xref linkend="ghci-windows"/>.</para>
</listitem>
</varlistentry>
+
+ <varlistentry>
+ <term>The default buffering mode is different in GHCi to GHC.</term>
+ <listitem>
+ <para>
+ In GHC, the stdout handle is line-buffered by default.
+ However, in GHCi we turn off the buffering on stdout,
+ because this is normally what you want in an interpreter:
+ output appears as it is generated.
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
</sect1>