From: simonpj@microsoft.com Date: Tue, 17 Nov 2009 13:23:08 +0000 (+0000) Subject: Extend the GHCi FAQ slightly X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=1d55e94449adf0ee36466cf4367046ed4cac6a68 Extend the GHCi FAQ slightly --- diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml index d929548..64da676 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. + + If you want line-buffered behaviour, as in GHC, you can + start your program thus: + + main = do { hSetBuffering stdout LineBuffering; ... } + +