From 1d55e94449adf0ee36466cf4367046ed4cac6a68 Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Tue, 17 Nov 2009 13:23:08 +0000 Subject: [PATCH] Extend the GHCi FAQ slightly --- docs/users_guide/ghci.xml | 7 +++++++ 1 file changed, 7 insertions(+) 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; ... } + + -- 1.7.10.4