From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iMxNMENjqF6XPQAA0tVLHw (envelope-from ) for ; Tue, 28 Apr 2020 17:09:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IGr5MEtjqF5+bQAA1q6Kng (envelope-from ) for ; Tue, 28 Apr 2020 17:09:31 +0000 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 8A450942355 for ; Tue, 28 Apr 2020 17:08:47 +0000 (UTC) Received: from localhost ([::1]:40396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTTiw-00036n-JC for larch@yhetil.org; Tue, 28 Apr 2020 13:08:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60974) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTT0O-0002rZ-DA for emacs-orgmode@gnu.org; Tue, 28 Apr 2020 12:22:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTT0M-0002ZN-A3 for emacs-orgmode@gnu.org; Tue, 28 Apr 2020 12:22:44 -0400 Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]:41817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTT0L-0002Ys-PX for emacs-orgmode@gnu.org; Tue, 28 Apr 2020 12:22:41 -0400 Received: by mail-ot1-x333.google.com with SMTP id c3so33599753otp.8 for ; Tue, 28 Apr 2020 09:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=wesJCJcgR9OsHiwulheWTqhKv4Aikba1Yndf8zP6vG0=; b=Tgl/x5GD2Tp90z6C3zRpDkLfa3hNshT8uKEU9HSq74yeLwqZUejuiSoyhoYn0fGMNA eoKU9ykpjUzbCY71qCIFiWop46KRY+eeX12SvcJ6bB7DgKMfvPx/55+8Kwk8e1C8ADGG CHXqvftxO5K36IPAuelcGLQUMKFc351hhRmlcM2Xfv3MF+1mnwsj0EJ5nlOrEJ3D3uxT nHxXgxCSrnQgk9YUEb3eq9CXAwkxpxKTTWb+Vlv7iVMGDPygHXX6uHxPa1UDdcledNPJ R6z4qZXyjz0k9RQaXFOVUvzfGUqJSwEzVaSfOyVi1dnH+tpsC8wRyrczKhydei988XSr xcMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=wesJCJcgR9OsHiwulheWTqhKv4Aikba1Yndf8zP6vG0=; b=mNl31ry2MSjMXoHR52uepJl1t9qVSn5RDtaJRNKxbwPFSGogaXQ/o6jF1ItLOdY6Qi 1kzdOb2v3yv7Inu2qzrMqh8dX52GvIvPmHEVUSTroC2RYd9zttoMvJwh75VtMCKbs4xN sVYm/zE0c3lMn7UgJNyH4jtTPWTax7RyRjrW16efXRPpJffHCbG+IkdaAkYAzblswV6Q q6bM9Clm9fzx03noF513k/qNAJgw1QN7hp8Av04gsWxSwUD394oGqF9W90T8pZLMX/N5 SvlFMKPUfeKthbHke6nFzoauNni8WM6Wk7eS+pvqrmDrTAtLGVXhx8hoiJ9f3Tld/LaH fdTg== X-Gm-Message-State: AGi0PuY6LUinOBjjTNL3sYl1jsr8szKGsUnK6CxavEmLJGey8M7t5eSm GgryiPG4riW8vOMQ5knsx9EQmlGz6IHJt8XmwX5/kczF X-Google-Smtp-Source: APiQypJ1VkFbTVO6wcidoPRtl8m5Ht5vajJ5E6PNEpRT+jZaFszKo0LtG4cGOR0AG9ZArJpUbjjaY8q1XHRp5fUxoXc= X-Received: by 2002:aca:3441:: with SMTP id b62mr3402815oia.146.1588090959919; Tue, 28 Apr 2020 09:22:39 -0700 (PDT) MIME-Version: 1.0 From: Roland Coeurjoly Date: Tue, 28 Apr 2020 18:22:28 +0200 Message-ID: Subject: Babel Haskell. Print all results when header has :results output To: emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="00000000000089c50f05a45c3dde" Received-SPF: pass client-ip=2607:f8b0:4864:20::333; envelope-from=rolandcoeurjoly@gmail.com; helo=mail-ot1-x333.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2607:f8b0:4864:20::333 X-Mailman-Approved-At: Tue, 28 Apr 2020 13:08:18 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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" X-Scanner: scn0 X-Spam-Score: 1.19 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=gmail.com header.s=20161025 header.b=Tgl/x5GD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [1.19 / 13.00]; GENERIC_REPUTATION(0.00)[-0.55571463401875]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; R_DKIM_REJECT(1.00)[gmail.com:s=20161025]; HAS_ATTACHMENT(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; MIME_BASE64_TEXT_BOGUS(1.00)[]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.18), country: US(-0.00), ip: 209.51.188.17(-0.56)]; DKIM_TRACE(0.00)[gmail.com:-]; MIME_BASE64_TEXT(0.10)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[rolandcoeurjoly@gmail.com,emacs-orgmode-bounces@gnu.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,multipart/alternative,text/plain,text/x-patch]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed),none] X-TUID: JFr9yekiZDRB --00000000000089c50f05a45c3dde Content-Type: multipart/alternative; boundary="00000000000089c50c05a45c3ddc" --00000000000089c50c05a45c3ddc Content-Type: text/plain; charset="UTF-8" Right now, when executing the following source block #+begin_src haskell :results output [1..10] "hello" == "hello" #+end_src I get the following output: #+RESULTS: : True Whereas (for me) the desired result would be #+RESULTS: : [1,2,3,4,5,6,7,8,9,10] : True I created the attached patch that achieves the desired result. Please notice that the default behaviour (without :results output) remains unchanged. --00000000000089c50c05a45c3ddc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Right now, when executing the following source block<= /div>

#+begin_src haskell :results output
[1..10]
= "hello" =3D=3D "hello"
=C2=A0 =C2=A0#+end_src
<= div>
I get the following output:

#+R= ESULTS:
=C2=A0 =C2=A0: True

Whereas (for me) th= e desired result would be

#+RESULTS:
=C2= =A0 =C2=A0: [1,2,3,4,5,6,7,8,9,10]
=C2=A0 =C2=A0: True

I created the attached patch that achieves the desired result.

Please notice that the default behaviour (without :res= ults output) remains unchanged.
--00000000000089c50c05a45c3ddc-- --00000000000089c50f05a45c3dde Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Print-all-results.patch" Content-Disposition: attachment; filename="0001-Print-all-results.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k9k4ag840 RnJvbSAwZTdkMmFjMjJhMDI4NTA3ZWFmNWVjYzg1NjIzYjYyNTcyZWUzZGU4IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBSb2xhbmQgQ29ldXJqb2x5IDxyb2xhbmRjb2V1cmpvbHlAZ21h aWwuY29tPgpEYXRlOiBUdWUsIDI4IEFwciAyMDIwIDE4OjA2OjUwICswMjAwClN1YmplY3Q6IFtQ QVRDSF0gUHJpbnQgYWxsIHJlc3VsdHMKCi0tLQogbGlzcC9vcmcvb2ItaGFza2VsbC5lbCB8IDIg Ky0KIDEgZmlsZSBjaGFuZ2VkLCAxIGluc2VydGlvbigrKSwgMSBkZWxldGlvbigtKQoKZGlmZiAt LWdpdCBhL2xpc3Avb3JnL29iLWhhc2tlbGwuZWwgYi9saXNwL29yZy9vYi1oYXNrZWxsLmVsCmlu ZGV4IGQzMmEyZjdiYzAuLmU1ZWYwOTk5ZTAgMTAwNjQ0Ci0tLSBhL2xpc3Avb3JnL29iLWhhc2tl bGwuZWwKKysrIGIvbGlzcC9vcmcvb2ItaGFza2VsbC5lbApAQCAtMTQ1LDcgKzE0NSw3IEBAIG9y Zy1iYWJlbC1pbnRlcnByZXQtSGFza2VsbAogICAgIChvcmctYmFiZWwtcmVhc3NlbWJsZS10YWJs ZQogICAgICAobGV0ICgocmVzdWx0CiAgICAgICAgICAgICAocGNhc2UgcmVzdWx0LXR5cGUKLSAg ICAgICAgICAgICAgKGBvdXRwdXQgKG1hcGNvbmNhdCAjJ2lkZW50aXR5IChyZXZlcnNlIChjZHIg cmVzdWx0cykpICJcbiIpKQorICAgICAgICAgICAgICAoYG91dHB1dCAobWFwY29uY2F0ICMnaWRl bnRpdHkgKHJldmVyc2UgcmVzdWx0cykgIlxuIikpCiAgICAgICAgICAgICAgIChgdmFsdWUgKGNh ciByZXN1bHRzKSkpKSkKICAgICAgICAob3JnLWJhYmVsLXJlc3VsdC1jb25kIChjZHIgKGFzc3Eg OnJlc3VsdC1wYXJhbXMgcGFyYW1zKSkKIAkgcmVzdWx0IChvcmctYmFiZWwtc2NyaXB0LWVzY2Fw ZSByZXN1bHQpKSkKLS0gCjIuMjAuMQoK --00000000000089c50f05a45c3dde--