X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fghci.xml;h=0a50bcc554d5eb03c6005b11e03a14b6f7b60fe6;hb=65277a1c9ff86c28c656849d6f6cbb392f1eb3e7;hp=402c7cb58c99394357bc5842f076708aa5f6ca0f;hpb=3d73e45b0909b9669d4679cbda29fa2b17b98d2e;p=ghc-hetmet.git
diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml
index 402c7cb..0a50bcc 100644
--- a/docs/users_guide/ghci.xml
+++ b/docs/users_guide/ghci.xml
@@ -2331,6 +2331,16 @@ bar
+ :run
+ :run
+
+
+ See :main.
+
+
+
+
+
:set option...
:set
@@ -2386,7 +2396,9 @@ bar
Inside prompt, the sequence
%s is replaced by the names of the
modules currently in scope, and %% is
- replaced by %.
+ replaced by %. If prompt
+ starts with " then it is parsed as a Haskell String;
+ otherwise it is treated as a literal string.
@@ -2906,6 +2918,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; ... }
+
+