From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oFPhJWiRwV4rHAAA0tVLHw (envelope-from ) for ; Sun, 17 May 2020 19:32:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UCbgIWiRwV4aZAAAB5/wlQ (envelope-from ) for ; Sun, 17 May 2020 19:32:56 +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 65ACD940D95 for ; Sun, 17 May 2020 19:32:49 +0000 (UTC) Received: from localhost ([::1]:47982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaP1k-00042H-1U for larch@yhetil.org; Sun, 17 May 2020 15:32:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaOzm-00041Z-Il for emacs-orgmode@gnu.org; Sun, 17 May 2020 15:30:46 -0400 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]:46166) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jaOzl-0003XG-Mf for emacs-orgmode@gnu.org; Sun, 17 May 2020 15:30:46 -0400 Received: by mail-io1-xd33.google.com with SMTP id j8so8302588iog.13 for ; Sun, 17 May 2020 12:30:44 -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=QaSd9XTAKkMtgkC++kwzkIxNWgq3/m+8r2/I9li8P4o=; b=k4fdy6TSCGqI7aKFDy/EBoiXdJ1dw31Ja7WyQEi6KAyUCarhxQE7jrDykUAwo81VXd FGDJ3v9Imybb4RP6Hj2Fk0vhHQAqMBIXwW8Ppb2AXPGZgfZs37EbNnfRHyWSeIKnBnw4 iXL71sJoBPSrq7KUQ4phbg/3hd/kuru/qCNSy7/QrPT2qRHI9AjCrgoMP4plqF2pJCFA rf0DJFIUbM/uRwBuVcEJSes0NitcEnFrHDhPt5oMSMXtA5jg/j2VYUMk/YY9Hb824y5J 4txJJMWHmhIDFkB+c3bI8ZFHJMdvwKLtI/WRKevYoY40tIN9aLQSTYQ+MnyV+mYqpjMV jWsw== 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=QaSd9XTAKkMtgkC++kwzkIxNWgq3/m+8r2/I9li8P4o=; b=t98AeVs8u5X4QDZhdpBhcZMnrVy9cxwjVTHTpf7hB/pStttgdn0ObxVeBQ+uA+SEwt PPbwkknYqusIRJjAB3AkCwgBSupY7z2lbttGOXznSHLcZZ8IlWAye/8bbFgGuFKPXcu0 2ecrcrn+89lnUw5ihz7cPPxv30IfhhsJRs6VPr9xiOTpEW+NkNDpGwoDNkTGl2SPbtnc 7rDFAx2+9sDNgpx9abW4hR3fdiNG9y6Df/TgabC0Pbc68+9U1XJfHlLfoMVh8MfXOPzI +lWm9nC8iXNH2OHBgfUmqb75jH55Y4Rg7e6KbFEXgy2a2kQNs98yOaNDfCJh6Mw7W3B+ wW2Q== X-Gm-Message-State: AOAM530M5f8uF1FUvMkibGAVW0/15yXQdMaqldN8RGohj8g21DKWblCd rv7Ukpd+uP0HgYNhVlavmOL0yjnAm1Fa2ODDEHym2mLg X-Google-Smtp-Source: ABdhPJwOJk8DVKofRrOweVIMzsVnMvJyv0yeIdeMylOjaNhsETIxFB8eiZCyC317Pv2pw2wJ3PBVNG0HF0l3e238Pgg= X-Received: by 2002:a5d:9e0b:: with SMTP id h11mr10241699ioh.205.1589743843526; Sun, 17 May 2020 12:30:43 -0700 (PDT) MIME-Version: 1.0 From: Nick Daly Date: Sun, 17 May 2020 14:30:32 -0500 Message-ID: Subject: [PATCH] ob-haskell: Line Continuations Mangle Block Output To: Org Mode Content-Type: multipart/mixed; boundary="00000000000013f26205a5dd15e1" Received-SPF: pass client-ip=2607:f8b0:4864:20::d33; envelope-from=nick.m.daly@gmail.com; helo=mail-io1-xd33.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=k4fdy6TS; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -0.61 X-TUID: RUf9fLbOefB2 --00000000000013f26205a5dd15e1 Content-Type: text/plain; charset="UTF-8" Hi Org Maintainers, Please see the attached patch to remove "Prelude> " and "Prelude| " line continuations from the block result output when parsing blocks that contain multi-line function declarations. This likely requires yesterday's patch to return value-type results from Haskell blocks. This patch applies cleanly against the org-mode master. #+name: chain-ecm #+BEGIN_SRC haskell :{ chain :: (Integral a) => a -> [a] chain 1 = [1] chain n | even n = n:chain (n `div` 2) | odd n = n:chain (n*3 + 1) :} chain 10 #+END_SRC Results without patch: : Prelude| Prelude| Prelude| Prelude| Prelude| Prelude| Prelude> [10,5,16,8,4,2,1] Results with patch: : | 10 | 5 | 16 | 8 | 4 | 2 | 1 | Thank you for your time, Nick --00000000000013f26205a5dd15e1 Content-Type: text/x-patch; charset="US-ASCII"; name="ob-haskell-trim-prelude.diff" Content-Disposition: attachment; filename="ob-haskell-trim-prelude.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kabgcacx0 LS0tIGxpc3Avb2ItaGFza2VsbC5lbAorKysgbGlzcC9vYi1oYXNrZWxsLmVsCkBAIC04NCw5ICs4 NCwxMSBAQAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHJldmVyc2Ug KG1hcGNhciAjJ29yZy10cmltIHJhdykpKSkpKSkKICAgICAob3JnLWJhYmVsLXJlYXNzZW1ibGUt dGFibGUKICAgICAgKGxldCAoKHJlc3VsdAotICAgICAgICAgICAgKHBjYXNlIHJlc3VsdC10eXBl Ci0gICAgICAgICAgICAgIChgb3V0cHV0IChtYXBjb25jYXQgIydpZGVudGl0eSAocmV2ZXJzZSBy ZXN1bHRzKSAiXG4iKSkKLSAgICAgICAgICAgICAgKGB2YWx1ZSAoY2FyIHJlc3VsdHMpKSkpKQor CSAgICAocmVwbGFjZS1yZWdleHAtaW4tc3RyaW5nCisJICAgICAiUHJlbHVkZVt8Pl0gIiAiIgor ICAgICAgICAgICAgIChwY2FzZSByZXN1bHQtdHlwZQorICAgICAgICAgICAgICAgKGBvdXRwdXQg KG1hcGNvbmNhdCAjJ2lkZW50aXR5IChyZXZlcnNlIHJlc3VsdHMpICJcbiIpKQorICAgICAgICAg ICAgICAgKGB2YWx1ZSAoY2FyIHJlc3VsdHMpKSkpKSkKICAgICAgICAob3JnLWJhYmVsLXJlc3Vs dC1jb25kIChjZHIgKGFzc3EgOnJlc3VsdC1wYXJhbXMgcGFyYW1zKSkKIAkgcmVzdWx0IChpZiAo c3RyaW5ncCByZXN1bHQpIChvcmctYmFiZWwtc2NyaXB0LWVzY2FwZSByZXN1bHQpKSkpCiAgICAg IChvcmctYmFiZWwtcGljay1uYW1lIChjZHIgKGFzc3EgOmNvbG5hbWUtbmFtZXMgcGFyYW1zKSkK CkRpZmYgZmluaXNoZWQuICBTdW4gTWF5IDE3IDE0OjI2OjIxIDIwMjAK --00000000000013f26205a5dd15e1--