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 6BFmO87XsV43YQAA0tVLHw (envelope-from ) for ; Tue, 05 May 2020 21:17:02 +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 ALjOHtrXsV4beQAAB5/wlQ (envelope-from ) for ; Tue, 05 May 2020 21:17:14 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::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 A0BE59400A6 for ; Tue, 5 May 2020 21:17:10 +0000 (UTC) Received: from localhost ([::1]:52388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jW4wA-0001nK-99 for larch@yhetil.org; Tue, 05 May 2020 17:17:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jW4vZ-0001nA-2o for emacs-orgmode@gnu.org; Tue, 05 May 2020 17:16:33 -0400 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]:32970) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jW4vX-0002k1-Up for emacs-orgmode@gnu.org; Tue, 05 May 2020 17:16:32 -0400 Received: by mail-ot1-x336.google.com with SMTP id j26so201727ots.0 for ; Tue, 05 May 2020 14:16:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=YcIWr+LTNDoYb7Kk/k/X24xtCT6nvchFGG6rqiDMTEs=; b=Z2utkvauhGJs+58HFktjfL2gV8DriChwMK1dSuWV9d0LcCdM18AmEwyw63r/cwf8Bf uD9fgpI+Zd6HJR570fLkcbmPbOip2bxiupjyyCQssHea65OxRrFlbpdx7JjkBDoHWDbw CcusJ7xjkyPo93zg3Crwobg+OvzJ+ADpJZ9EWn3ruumYD0VauxoOKpDCtNJ05Qa1D272 dNopbjar2kp4MihLUKzZIDEnwDSVxS52PpTVP2ZxAjjmIGZCH2XInxZwo7M75dE1HNAa fycJzWQTcw9i723GHiToyK0aClaJfOKH7WY057TKUcFtXGf7AhMl/3x6TECo4hTc7sKX xFXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=YcIWr+LTNDoYb7Kk/k/X24xtCT6nvchFGG6rqiDMTEs=; b=TLrh3LzFkuQgmiQhJ18KpUIVeifsUICVPJBz/PE2XBg6W7ufeeLqdJnjZsKE7LV87z OTN1vEFpGSoEDNL/x9+9X0/gJI388wE7fk71yeBs2BoLNzdEbWN10aEAjLIM2wUp8rDl HH/Uw2p+2ZZPt6EyrUKMpLezF+vDNER4mTGLgXLQcXI7mphq+2p5qE9gXOyGGakwvVf1 LXcGLWWxQjRJCogfBsEcT1viT5JoxFbvTzVAoAOxxaXXp7ynOZXp7Ry8BZElrRWYFgDn IzkFjLZh1sEMTnhU1u7oN2OVDF0s7Lku+5kii2Nl6dts4ZJURMjTp73Hjv0yDV/4mUV3 4YLA== X-Gm-Message-State: AGi0PuaoNCm5CVILJ/+5sGyqYzs8gX778eDHgNdCNlFiQqJmQatyEfwV ZHho74fAOExVRYRNVI6ISgM+5wIge31iIbja1hk= X-Google-Smtp-Source: APiQypIVTnrxA+UT7ocS6SZtpCb0oHzHWbsmorx8MrItVqtOzgT8XvHEDGXAR4W9x6hif2YFjIHYITE9SWv6Tklmdwo= X-Received: by 2002:a05:6830:2149:: with SMTP id r9mr4001890otd.270.1588713390477; Tue, 05 May 2020 14:16:30 -0700 (PDT) MIME-Version: 1.0 References: <87v9lb3enr.fsf@nicolasgoaziou.fr> <87zhan1iby.fsf@nicolasgoaziou.fr> In-Reply-To: <87zhan1iby.fsf@nicolasgoaziou.fr> From: Roland Coeurjoly Date: Tue, 5 May 2020 23:16:19 +0200 Message-ID: Subject: Re: Fwd: Support compilation of Haskell in org mode babel blocks. To: Roland Coeurjoly , emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="0000000000004a496a05a4ed294f" Received-SPF: pass client-ip=2607:f8b0:4864:20::336; envelope-from=rolandcoeurjoly@gmail.com; helo=mail-ot1-x336.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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 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=Z2utkvau; 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 2001:470:142::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.49569591219806]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; R_DKIM_REJECT(1.00)[gmail.com:s=20161025]; HAS_ATTACHMENT(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_BASE64_TEXT_BOGUS(1.00)[]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.12), country: US(-0.00), ip: 2001:470:142::17(-0.50)]; DWL_DNSWL_BLOCKED(0.00)[2001:470:142::17:from]; DKIM_TRACE(0.00)[gmail.com:-]; MIME_BASE64_TEXT(0.10)[]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com,gnu.org]; RCVD_IN_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, 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)[5]; URIBL_BLOCKED(0.00)[nicolasgoaziou.fr:email]; FROM_HAS_DN(0.00)[]; FORGED_RECIPIENTS_MAILLIST(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)[]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed),none] X-TUID: PFAItHQx+IPi --0000000000004a496a05a4ed294f Content-Type: multipart/alternative; boundary="0000000000004a496705a4ed294d" --0000000000004a496705a4ed294d Content-Type: text/plain; charset="UTF-8" Please see attached patch. Regards. On Mon, May 4, 2020 at 11:50 PM Nicolas Goaziou wrote: > Roland Coeurjoly writes: > > > I am confused about the last point: > > Use a let-binding instead of setq. > > > > If I use: > > > > (let* compile (string= (cdr (assq :compile params)) "yes")) > > I meant: > > (let ((compile (string= "yes" (cdr (assq :compile params))))) > ...) > --0000000000004a496705a4ed294d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Please see attached patch.
Regards.

On Mon, May 4, 2020 at 11:50 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
Roland Coeurjoly <rolandcoeurjoly@gmail.c= om> writes:

> I am confused about the last point:
> Use a let-binding instead of setq.
>
> If I use:
>
> (let* compile (string=3D (cdr (assq :compile params)) "yes")= )

I meant:

=C2=A0 (let ((compile (string=3D "yes" (cdr (assq :compile params= )))))
=C2=A0 =C2=A0...)
--0000000000004a496705a4ed294d-- --0000000000004a496a05a4ed294f Content-Type: text/x-patch; charset="US-ASCII"; name="0001-ob-haskell-introduce-compile-header-argument.patch" Content-Disposition: attachment; filename="0001-ob-haskell-introduce-compile-header-argument.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k9uexatl0 RnJvbSAyYzA1YmE4NWJmZmFjNDAxOTQzMmZhNDYxYzBlNGY3NWNkMjRhMGY2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBSb2xhbmQgQ29ldXJqb2x5IDxyb2xhbmRjb2V1cmpvbHlAZ21h aWwuY29tPgpEYXRlOiBUdWUsIDUgTWF5IDIwMjAgMjM6MDk6NTggKzAyMDAKU3ViamVjdDogW1BB VENIIDEvMV0gb2ItaGFza2VsbDogaW50cm9kdWNlIDpjb21waWxlIGhlYWRlciBhcmd1bWVudAoK KiBsaXNwL29iLWhhc2tlbGwgKG9yZy1iYWJlbC1oYXNrZWxsLWNvbXBpbGVyKToKKG9yZy1iYWJl bC1oZWFkZXItYXJ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keSBwYXJhbXMpCiAgICJUaGlzIGZ1bmN0aW9uIHNob3Vs ZCBvbmx5IGJlIGNhbGxlZCBieSBgb3JnLWJhYmVsLWV4ZWN1dGU6aGFza2VsbCciCiAgIChsZXQq ICgodG1wLXNyYy1maWxlIChvcmctYmFiZWwtdGVtcC1maWxlCiAJCQkiSGFza2VsbC1zcmMtIgpA QCAtODUsOCArODUsMTAgQEAgb3JnLWJhYmVsLUhhc2tlbGwtZXhlY3V0ZQogICAgICAgICAgKGNt ZGxpbmUgKGNkciAoYXNzcSA6Y21kbGluZSBwYXJhbXMpKSkKICAgICAgICAgIChjbWRsaW5lIChp ZiBjbWRsaW5lIChjb25jYXQgIiAiIGNtZGxpbmUpICIiKSkKICAgICAgICAgIChmbGFncyAoY2Ry IChhc3NxIDpmbGFncyBwYXJhbXMpKSkKLSAgICAgICAgIChmbGFncyAobWFwY29uY2F0ICdpZGVu dGl0eQotCQkgICAgICAgICAgIChpZiAobGlzdHAgZmxhZ3MpIGZsYWdzIChsaXN0IGZsYWdzKSkg IiAiKSkKKyAgICAgICAgIChmbGFncyAobWFwY29uY2F0ICMnaWRlbnRpdHkKKwkJICAgICAgICAg ICAoaWYgKGxpc3RwIGZsYWdzKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZsYWdz CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChsaXN0IGZsYWdzKSkgIiAiKSkKICAgICAg ICAgIChsaWJzIChvcmctYmFiZWwtcmVhZAogCSAgICAgICAgKG9yIChjZHIgKGFzc3EgOmxpYnMg cGFyYW1zKSkKIAkgICAgICAgICAgICAob3JnLWVudHJ5LWdldCBuaWwgImxpYnMiIHQpKQpAQCAt OTcsMTEgKzk5LDEyIEBAIG9yZy1iYWJlbC1IYXNrZWxsLWV4ZWN1dGUKICAgICAod2l0aC10ZW1w LWZpbGUgdG1wLXNyYy1maWxlIChpbnNlcnQgYm9keSkpCiAgICAgKG9yZy1iYWJlbC1ldmFsCiAg ICAgIChmb3JtYXQgIiVzIC1vICVzICVzICVzICVzIgotICAgICAgICAgICAgIG9yZy1iYWJlbC1I YXNrZWxsLWNvbXBpbGVyCisgICAgICAgICAgICAgb3JnLWJhYmVsLWhhc2tlbGwtY29tcGlsZXIK IAkgICAgIHRtcC1iaW4tZmlsZQogCSAgICAgZmxhZ3MKIAkgICAgIChvcmctYmFiZWwtcHJvY2Vz cy1maWxlLW5hbWUgdG1wLXNyYy1maWxlKQotCSAgICAgbGlicykgIiIpCisJICAgICBsaWJzKQor ICAgICAiIikKICAgICAobGV0ICgocmVzdWx0cwogCSAgIChvcmctYmFiZWwtZXZhbAogCSAgICAo Y29uY2F0IHRtcC1iaW4tZmlsZSBjbWRsaW5lKSAiIikpKQpAQCAtMTE2LDEwICsxMTksOSBAQCBv cmctYmFiZWwtSGFza2VsbC1leGVjdXRlCiAgICAgICAgICAob3JnLWJhYmVsLXBpY2stbmFtZQog CSAgKGNkciAoYXNzcSA6Y29sbmFtZS1uYW1lcyBwYXJhbXMpKSAoY2RyIChhc3NxIDpjb2xuYW1l cyBwYXJhbXMpKSkKICAgICAgICAgIChvcmctYmFiZWwtcGljay1uYW1lCi0JICAoY2RyIChhc3Nx IDpyb3duYW1lLW5hbWVzIHBhcmFtcykpIChjZHIgKGFzc3EgOnJvd25hbWVzIHBhcmFtcykpKSkp Ci0gICAgICApKSkKKwkgIChjZHIgKGFzc3EgOnJvd25hbWUtbmFtZXMgcGFyYW1zKSkgKGNkciAo YXNzcSA6cm93bmFtZXMgcGFyYW1zKSkpKSkpKSkKIAotKGRlZnVuIG9yZy1iYWJlbC1pbnRlcnBy ZXQtSGFza2VsbCAoYm9keSBwYXJhbXMpCisoZGVmdW4gb3JnLWJhYmVsLWludGVycHJldC1oYXNr ZWxsIChib2R5IHBhcmFtcykKICAgKHJlcXVpcmUgJ2luZi1oYXNrZWxsKQogICAoYWRkLWhvb2sg J2luZmVyaW9yLWhhc2tlbGwtaG9vawogICAgICAgICAgICAgKGxhbWJkYSAoKQpAQCAtMTU3LDEw ICsxNTksMTAgQEAgb3JnLWJhYmVsLWludGVycHJldC1IYXNrZWxsCiAKIChkZWZ1biBvcmctYmFi ZWwtZXhlY3V0ZTpoYXNrZWxsIChib2R5IHBhcmFtcykKICAgIkV4ZWN1dGUgYSBibG9jayBvZiBI YXNrZWxsIGNvZGUuIgotICAoc2V0cSBjb21waWxlIChzdHJpbmc9IChjZHIgKGFzc3EgOmNvbXBp bGUgcGFyYW1zKSkgInllcyIpKQorICAobGV0ICgoY29tcGlsZSAoc3RyaW5nPSAieWVzIiAoY2Ry IChhc3NxIDpjb21waWxlIHBhcmFtcykpKSkpCiAgIChpZiAobm90IGNvbXBpbGUpCi0gICAgICAo b3JnLWJhYmVsLWludGVycHJldC1IYXNrZWxsIGJvZHkgcGFyYW1zKQotICAgIChvcmctYmFiZWwt SGFza2VsbC1leGVjdXRlIGJvZHkgcGFyYW1zKSkpCisgICAgICAob3JnLWJhYmVsLWludGVycHJl dC1oYXNrZWxsIGJvZHkgcGFyYW1zKQorICAgIChvcmctYmFiZWwtaGFza2VsbC1leGVjdXRlIGJv ZHkgcGFyYW1zKSkpKQogCiAoZGVmdW4gb3JnLWJhYmVsLWhhc2tlbGwtaW5pdGlhdGUtc2Vzc2lv biAoJm9wdGlvbmFsIF9zZXNzaW9uIF9wYXJhbXMpCiAgICJJbml0aWF0ZSBhIGhhc2tlbGwgc2Vz c2lvbi4KLS0gCjIuMjAuMQoK --0000000000004a496a05a4ed294f--