From 58fa36245d447a336bada3de2eed05f9969370e5 Mon Sep 17 00:00:00 2001 From: simonpj Date: Mon, 23 May 2005 14:49:59 +0000 Subject: [PATCH] [project @ 2005-05-23 14:49:59 by simonpj] Print only the result of a bind stmt --- ghc/docs/users_guide/ghci.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ghc/docs/users_guide/ghci.xml b/ghc/docs/users_guide/ghci.xml index 44dd46e..a0210ea 100644 --- a/ghc/docs/users_guide/ghci.xml +++ b/ghc/docs/users_guide/ghci.xml @@ -448,13 +448,7 @@ Prelude> print x *** Exception: help! Prelude> - Any exceptions raised during the evaluation or execution - of the statement are caught and printed by the GHCi command line - interface (for more information on exceptions, see the module - Control.Exception in the libraries - documentation). - -GHCi will print the result of a let or +GHCi will print the result of a x<-e statement if and only if: The statement binds exactly one variable @@ -463,6 +457,12 @@ Prelude> and is an instance of Show + Any exceptions raised during the evaluation or execution + of the statement are caught and printed by the GHCi command line + interface (for more information on exceptions, see the module + Control.Exception in the libraries + documentation). + Every new binding shadows any existing bindings of the same name, including entities that are in scope in the current -- 1.7.10.4