From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id gKuzL09c8GX0DgEA62LTzQ:P1 (envelope-from ) for ; Tue, 12 Mar 2024 14:44:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id gKuzL09c8GX0DgEA62LTzQ (envelope-from ) for ; Tue, 12 Mar 2024 14:44:47 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=TILJ++Zo; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710251087; 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=0/3mFiQBZrRvd/V+s8qjkLineDTMzF+DUvr2rr4QcFE=; b=s9xn3HZa23qCMmynQWPRQSFXlMnpeN+0g5LEJ9oA5XsQeO8fPKL13G98vsAFLTQVwE/UYf w09l+bgxVCrt+Yv/qt4Zs06H+IVM7UrjotJzIsWjpyQJxpom3S6JIWjKJ9C1v8eC+vbYQF o5lzNaM335WU3k4O3knmNtkG//7YrOhOJIUHnc9rEjpghlZI7WF+yPzZiLi/Gk1Qbp785L kJQpq+lffDXvX9eTnX7oYKz8Fi/eCDaqF1ZmBu3FdQQHxXcat87uifXR2QagOMwrg7Bo9i /gGhmPgD6oF0kICHlGAn0oabT3ij6I4pNq+jwvokeh1s5aqCOysPAd0PDcxk0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710251087; a=rsa-sha256; cv=none; b=G0hwN1QIt73SctZbIXw+X3a7CkcGXVHZ6BnRD/ewvZocIRqVqDGgbktQxIKgVkMt90C9mq BEeTz7A6wJQTSPm2Ichg343mpOhomEopMDhSmF08xvGo4rJ0eJKQz5138WXDVZ+B3pNGZg U0LCu8dEGXp9sd2eNyz8vbVV4y5+E7nbV3XEnlLo1zZnoHEWrRIdGCPTT6923DGyN4QW0g 11GgopgSg+Sn7jrodB9BRMO2O0aO60wmmxaBlBvR1MaNGwXsH25E9TEthAHUED/OnrvQKI 4De9myymPRLTVpE3Q9iOP6MI9ErfzrGmOqru6LJqHyi41ob+bLq/UOyG4HEpHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=TILJ++Zo; 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"; dmarc=pass (policy=none) header.from=gmail.com 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 8F5926A21C for ; Tue, 12 Mar 2024 14:44:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rk2Qa-0005Eo-SF; Tue, 12 Mar 2024 09:44:24 -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 1rk2QZ-0005BB-Ch for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 09:44:23 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rk2QX-00042l-Q8 for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 09:44:23 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-413428499a6so3937135e9.1 for ; Tue, 12 Mar 2024 06:44:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710251060; x=1710855860; darn=gnu.org; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:from:to:cc:subject:date:message-id:reply-to; bh=0/3mFiQBZrRvd/V+s8qjkLineDTMzF+DUvr2rr4QcFE=; b=TILJ++ZoKs26JLb8cBOWIXrXOnKd4hKSSoqgfWO/StwSbhi1vrVPKW4MmMLbwJoWU1 0tY/Vh/E+sUrC5Gn7CzfevkX42NUQzVYZfzrXO87Ygere/bPYT3GoI68C8FekTkUqDev VkjYsIzPWdP2zTVxDzUKAsrEpisvV+QpIx3OQhjd7LzbbvKNZkLsv5XRcQLDSwdmM9PN 8+2bkhIRYYyROGRGe37VCDW1+4E7vsFvp9npvCFT6xCX76itnYDmBYoXUGhtULSbqFAE 2pwTGdyDsDzxDLOmHpfZjIItATUK9HypayVFHmhlaYduiOV59DNkFnT81Qmgz1FElwML nXlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710251060; x=1710855860; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0/3mFiQBZrRvd/V+s8qjkLineDTMzF+DUvr2rr4QcFE=; b=gjRVI5wF2dXI2+g9O2YndgYBuTQPW9Bb5+nkoSt19UQuKc5BltMz8WHGOIeZHxZxVf y0LjdvG6l8nzU+wD3GOXeD8cwnndiNI68dqUIgYpy76ZCBmVSwI6Xe+L8UN0jGfeTJK5 jq7Oiz7gSEYzbthseJGrbsTv8sVWZI5/u+gG7pkzi2WjMxGjMHUJL0oaA8lgs2waszaG 0MDAkBouwjrjDGhqazQQOJlX5wHWA35pqn1SchMqAyQcaufwLojOf1vOMJsC6Tug+sXk OLhaLDLQdDzimEo+ZuSQNlBTXMbvJBSiiqbRz+C1IUa9nHqSYOnortlUpWeQo9I3YfUb GGFw== X-Forwarded-Encrypted: i=1; AJvYcCU19WzW90YTVJg6oRUdlYDxSskmS7bdUJnV2qVScHvS9M8gUdkK2PeqT3WpZrSniRISZvpprPk3/F+QYou5hl/W5siW3Pw= X-Gm-Message-State: AOJu0YxCy2Hg4KRQFyyh75e96SGFb4lxMHgtMMWeN7eppmmKlsPMPAk+ b5dD58mrw3vS90JeGklKwQGr2XO4jet4ptychcuzN5qGPpK4Nuf6 X-Google-Smtp-Source: AGHT+IFKjet5w7jp5su87GGP71x/qIYLqoewPjZJD//jVUYh9XnJbbKlUjFDamCQSyRgV5y/D/o0ww== X-Received: by 2002:a05:600c:4708:b0:412:f67b:bed8 with SMTP id v8-20020a05600c470800b00412f67bbed8mr7391975wmo.37.1710251059552; Tue, 12 Mar 2024 06:44:19 -0700 (PDT) Received: from keynux ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id h17-20020a05600c315100b004101f27737asm18874694wmo.29.2024.03.12.06.44.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 06:44:19 -0700 (PDT) Message-ID: <65f05c33.050a0220.64979.f250@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Tue, 12 Mar 2024 14:44:17 +0100 From: Bruno Barbier To: Ihor Radchenko Cc: Laurence von Bottorff , emacs-orgmode Mailinglist Subject: Re: ob-haskell and changing executables? In-Reply-To: <878r2neifx.fsf@localhost> References: <65ec2c50.050a0220.60862.ade3@mx.google.com> <878r2neifx.fsf@localhost> Date: Tue, 12 Mar 2024 14:44:17 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x332.google.com 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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.76 X-Spam-Score: -7.76 X-Migadu-Queue-Id: 8F5926A21C X-Migadu-Scanner: mx11.migadu.com X-TUID: uCNrFheiJeBk Hi Ihor, Ihor Radchenko writes: > Bruno Barbier writes: > >>> If you've gotten this far you probably know more >>> about the Haskell Babel situation than you ever wanted to, but maybe you >>> can sniff out where this hardwire is happening. >> >> It's not hard coded (there is quite a lot of code just to guess the >> right interpreter). ob-haskell delegates the task to the >> haskell-mode package; that's where you should be looking for to >> configure it. > > Only for sessions. For src blocks with :session none, we directly call > `org-babel-haskell-compiler'. Good point. I didn't check that execution path (probably because I assumed the OP was speaking only about GHCi). But, from what I see (function `org-babel-execute:haskell'), for Haskell, we switch to the compiler only if explicitly requested (':compile' option is "yes"). If not, we use the interpreter for both with and without sessions. Am I missing something ? Thanks, Bruno > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at