Commit 1d55e944 authored by simonpj@microsoft.com's avatar simonpj@microsoft.com

Extend the GHCi FAQ slightly

parent 3a238f0f
......@@ -2908,6 +2908,13 @@ Prelude> :set -fno-glasgow-exts
because this is normally what you want in an interpreter:
output appears as it is generated.
</para>
<para>
If you want line-buffered behaviour, as in GHC, you can
start your program thus:
<programlisting>
main = do { hSetBuffering stdout LineBuffering; ... }
</programlisting>
</para>
</listitem>
</varlistentry>
</variablelist>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment