diff options
author | simonpj@microsoft.com <unknown> | 2009-11-17 13:23:08 +0000 |
---|---|---|
committer | simonpj@microsoft.com <unknown> | 2009-11-17 13:23:08 +0000 |
commit | 1d55e94449adf0ee36466cf4367046ed4cac6a68 (patch) | |
tree | d605698609c0db212f97685f2aee8eb2ce130d68 /docs | |
parent | 3a238f0ff4ad227205356736bf293643e970e424 (diff) | |
download | haskell-1d55e94449adf0ee36466cf4367046ed4cac6a68.tar.gz |
Extend the GHCi FAQ slightly
Diffstat (limited to 'docs')
-rw-r--r-- | docs/users_guide/ghci.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml index d9295484c8..64da676282 100644 --- a/docs/users_guide/ghci.xml +++ b/docs/users_guide/ghci.xml @@ -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> |