From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yCtJDxYUIGTOEwEASxT56A (envelope-from ) for ; Sun, 26 Mar 2023 11:44:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0LSkDRYUIGSVEwAAG6o9tA (envelope-from ) for ; Sun, 26 Mar 2023 11:44:54 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EC32437A12 for ; Sun, 26 Mar 2023 11:44:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgMvT-0004k8-5r; Sun, 26 Mar 2023 05:44:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgMvR-0004jx-SR for emacs-orgmode@gnu.org; Sun, 26 Mar 2023 05:44:33 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgMvP-0007BI-GX for emacs-orgmode@gnu.org; Sun, 26 Mar 2023 05:44:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7242F2401A2 for ; Sun, 26 Mar 2023 11:44:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1679823869; bh=LXXjA78hL7uxb6O1xw5wg7WuEgARzuExkkRurzuMDVw=; h=From:To:Cc:Subject:Date:From; b=Ht373y0J5py+NoX7w7AEG5QyDv49+M84wqkTFGYbC26VEkJSFgQc3MBBb9Dw9jDgL XwP3zEhTRlhrFcMrJjOfyN8SETRJno08WNqgVxZcHndL9qxQaC+YlI4UBDjQ8nSBFD HJ9bFGJBYdjlo8vZ5SpsCrle6WCAf05yiE5zisZQ9BeJ8KabaL6QyMC2ZpBK25k9r+ Kgtf7a6kDtjQwC6AW1So4DfzhWzajMj4O20PLDsHmKXbd/lo32UwvaNk9FAGQYy0g8 36kP08iYb9l1PcjJgCPfbDqLolJORhbNYlthmmrWfcPBD/rYSEB1NLv/7M6CIRgWP3 yoGk3Taw98OYA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Pkrd84nghz9rxH; Sun, 26 Mar 2023 11:44:28 +0200 (CEST) From: Ihor Radchenko To: Bruno Barbier Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Add tests for ob-haskell (GHCi) In-Reply-To: <6420130b.5d0a0220.3423a.5be1@mx.google.com> References: <6416d214.5d0a0220.d9c1.54aa@mx.google.com> <875yaxvy93.fsf@localhost> <6416e4d9.df0a0220.ce03d.5c4b@mx.google.com> <87h6udozvh.fsf@localhost> <87r0texwor.fsf@localhost> <641ec686.050a0220.16dbc.a6ca@mx.google.com> <87fs9rvpyj.fsf@localhost> <6420130b.5d0a0220.3423a.5be1@mx.google.com> Date: Sun, 26 Mar 2023 09:46:32 +0000 Message-ID: <874jq7vo93.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679823894; a=rsa-sha256; cv=none; b=fI9d56QlfEBhcUOJi85GLmpuv2gPFCc+uxANmcyY0MPbppXWOG9O9w+yZJmD91s5Ou7Gx4 QtYu7ol+yaUtPGtDdPizkdtJmM8KROVIz3CwVOLgQqbCN0mG6PLf692O/4wCgsBAo5mm2M XkM6yKkwDHdmrfwkDKWSTBAzfhjXPazG2BH0q04HuzovQEltZwiCkYHExplq5sI9zRIALZ Y+AGC1wjCv1Ps00PDSsdGG/xQ1waGEPMEbQ+VXNb15tNrTzkzV/bX8lVoBoHADgOsxSSO8 /oCT3RXIRNiA02ojSOECcPo1/jzOCWB8Vht/097p99Q8nyv03ojrvn1HLSbIzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Ht373y0J; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679823894; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=XhfDNLK8VjcBmIcAq7epLiR5tCA5Rsb/+108g6wcBz0=; b=TLoSdcVSJYegkVGlzGKCQv5HaQwCnY214+3IgrY2eBJQKak6udiG72jK/H4JrCh4Axe5bP eVC+AYCNLGiWeLecHdzRMDHe2FBGA3cwhPSxiAGpf6c1H5Tc4Qt3Q9bwxCjywMj+JFKbSh dmPVAbordYOaT/Cke5ski3/QbF+JDEjpN6O4dGsf6kGJ/Nhg9V+JZCoQUP3U7dQCAbvg6J YG2BXFeaiPGNXhu8dg+vNoBlIEecoTmfv9nyMMhujNLctdav+Bdiae41hYyqOIOfsIMD2f 472IL1/SZoo9N6N/x5tEQHds2u28TL10P2R6E+9awO2fm+yRg/0KvqNb1nK0TQ== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Ht373y0J; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.75 X-Spam-Score: -4.75 X-Migadu-Queue-Id: EC32437A12 X-TUID: fOfbETQgELQW Bruno Barbier writes: >> Why not simply putStrLn ("\"" ++ show it ++ "\"") ? >> > > I'm not sure I understand. I'm using the first > 'org-babel-comint-with-output' to execute the source block and save the > last value (the "it" variable). Then, I'm using a second > 'org-babel-comint-with-output' to make sure the output of this one > contains only the last value. If I display "it" in the first block, I > will not be able to differentiate between some output, previous values > and the last value. And, printing "org-babel-haskell-eoe" updates the > "it" variable (the last value becoming "()"), so I have to store the > real "it" somewhere. I see. I missed that `it' gets updated because of eoe indicator. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at