From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 6IYtIqQs7GXlhwAAqHPOHw:P1 (envelope-from ) for ; Sat, 09 Mar 2024 10:32:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 6IYtIqQs7GXlhwAAqHPOHw (envelope-from ) for ; Sat, 09 Mar 2024 10:32:20 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=SIWqXLud; 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=1709976740; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=dRnxNpvagW/KkOdhATv3esRxFbLMPNL8yYHXea4WIYo=; b=tyac9WBh0ZiCYMSbt0fkKwwT0TEBKAyoKcU+wcvXh25cz7bCRBAxf4GCx+xDofhnSquvTW anssUGwpGlbhAe0XxdzEIG3dQhqDSREXuj25YB8mL4W6jQaRHRRJwF/R/BAdDwlp9Y9zA9 2dZHdMJuM7A/koKswTGogF93PcSiLnQxrtOAdiCfiE93MQyiUEyrmI5AS585lXZjSc/Rjx 4ZWuhiwDCy/5HvfBMXJkAf/pXoLH4zAZydbE383GrAM3vHeT5PbixmgCuPCfnkXLfSbY3R IYa1HXhSlWD0OUD6gq0mH2WF+XsFlu9GuBOL9S0Jj4RH/PHEYThgqsXJpkasMA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709976740; a=rsa-sha256; cv=none; b=TOmYmp2jVoSvLVHdRLrAsNGFi+aNfRK/4yY/zkaUBCMvVtT3nc/NPv7TmVO0CSo9KZcfHj VTsjGzXttBbZZ4sXarrNktHQb7E90aze6t1ir2J93fSKndP6JvAO7VfP2ax8+PCMcIfVrk fNjYS0ZHLoH4wa/RDuc/tDYoQhj956P+W38P/lih0prHmcxPkI4a/g+xnggTS8lMW419cq +xCwxEvXX5txTWI3rnqBGIXbITF4iyrs6ffbQwa0vHJpBkmwKQJcF7j0iBcM8MUoNWzVbu kB7sxVnxvmxXYfm48aFEpFOmVSGiUhgycSiMMtk5UBLLSy1r/xjR48f0xChzQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=SIWqXLud; 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 78153597B8 for ; Sat, 9 Mar 2024 10:32:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rit2k-0000xo-5t; Sat, 09 Mar 2024 04:31:02 -0500 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 1rit2j-0000xG-2r for emacs-orgmode@gnu.org; Sat, 09 Mar 2024 04:31:01 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rit2h-0005ek-HK for emacs-orgmode@gnu.org; Sat, 09 Mar 2024 04:31:00 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-412f1ccf8d8so23284595e9.1 for ; Sat, 09 Mar 2024 01:30:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709976657; x=1710581457; darn=gnu.org; h=content-transfer-encoding:mime-version:date:references:in-reply-to :subject:to:from:message-id:from:to:cc:subject:date:message-id :reply-to; bh=dRnxNpvagW/KkOdhATv3esRxFbLMPNL8yYHXea4WIYo=; b=SIWqXLudJgKDRln3KIefccH/3cBNJdQJnDSvTcKZuADKtDi+LGjdSbslCGdo3ZIuXj MRA67qVTYTQ00VUSGlTiUbNvI+kRfP7B3rIdpCLDKOf/BFux+Fx/WkOpJbYclgpjhHAC Y8JH+L/GlBNhQw+pOpu8gjmfPZqX8rslTYmNonxJiseGW5VtOrbZ4EMTmFL3k8SSBEhd /Mrj2MZzAbbxkZs5Q6WNRbZULYBl9xceiPzG/MkW7NO6iSgnTy1hywUAGL3fAlJoufKz xtUhYJomyTLbU9JA+k9GrryV3XroOa8wDwQi/xGPkbf496NHO0wTXD57z4U+sFuSsaJV TQDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709976657; x=1710581457; h=content-transfer-encoding:mime-version:date:references:in-reply-to :subject:to:from:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=dRnxNpvagW/KkOdhATv3esRxFbLMPNL8yYHXea4WIYo=; b=XVRVuGUk2GYnYcy7yqZz+aduWI1xkCo7i2bKYGpM5D+ozRkvBJWW6orK7Wuh/NFklb lepHR2giRLwR6Y4wRrAQDZaN+311TjezqMw+QyWSwYu7Gb7ECycLO7HTaARBwoxyA9yE KbjZSwdjlrY++EQPY4fHBvw9idwoyKcotU1wCBGoxKE7oDUwtf2GH07Z1umyb1EzngqU qEXfCkeAkZ2bk0A/Di2p6e0td1OU0AnD8AFAq/ToGe7q4Y22zaLtV3ShqFKSGA3oecDR 7jbMKWvL2Sm0MPvB27jWIeEd5AOPpBQd7cDbWQsm98zOvhpz2egioSI7pK9cT8dMnWIh QzMw== X-Forwarded-Encrypted: i=1; AJvYcCV8/ojQj/uWySIyfYFq8kaSx+iuhk1MSg7MCLtjcBkeoVQgYtCJOzkQ3YU9fcJ0jILuAn2sQAPtlUVBm+CCXbkSxExzk2g= X-Gm-Message-State: AOJu0YxGQbbo6/AvWKLYIzs9tILHhluawQx+TqQaDv/R3QRU7aI4YZyQ CXfHwfWsoVIrWFzYAWCHYj57ibpTjuJaMgJ5CavInX/JjSa3zeur X-Google-Smtp-Source: AGHT+IEVDGeLCJUq+zi/ujYPM4ZWqMPSXIettJrFif83iqWUbGxH+DwdPZYUwrg1zY+83A7r6dK10w== X-Received: by 2002:a05:600c:1c82:b0:413:1ee8:aa0d with SMTP id k2-20020a05600c1c8200b004131ee8aa0dmr964300wms.11.1709976656668; Sat, 09 Mar 2024 01:30:56 -0800 (PST) Received: from keynux ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id gw7-20020a05600c850700b004131cf78b4bsm2639209wmb.12.2024.03.09.01.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 01:30:56 -0800 (PST) Message-ID: <65ec2c50.050a0220.60862.ade3@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Sat, 09 Mar 2024 10:30:54 +0100 From: Bruno Barbier To: Laurence von Bottorff , emacs-orgmode Mailinglist Subject: Re: ob-haskell and changing executables? In-Reply-To: References: Date: Sat, 09 Mar 2024 10:30:54 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, 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=no 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.80 X-Spam-Score: -7.80 X-Migadu-Queue-Id: 78153597B8 X-Migadu-Scanner: mx11.migadu.com X-TUID: em6aU6Br+nJc Hi Laurence, Laurence von Bottorff writes: > I'm on Debian 12 and I just started using Haskell's ghcup tools, leaving > the stack tools behind, as advised these days. ghcup puts executables for > Haskell such as ghc, ghci (REPL), cabal, etc. in its ~/.ghcup/bin > directory. Next, to stop using the stack tools that have executables in > /usr/bin/ you must change your PATH to go to ~/.ghcup/bin first. But when= I > try a Babel code block, ob-haskell seems to have the /usr/bin versions > hardwired somewhere and calls up the old ghci REPL. Searching through Ema= cs > Customize Haskell was confusing and my init only had one relevant entry > anyway, which didn't help when I changed it. > [...] > 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. Also, if your Org file is not inside your haskell project, using the :dir option may help haskell-mode to guess it right. Else, did you try to customize haskell-process-type ? There is also the option 'haskell-process-path-ghci', so, you should be able to set the path manually too. Or you've already forced it to "/usr/bin/ghci" ? Bruno > --=20 > =E2=A8=BD > Lawrence Bottorff > Grand Marais, MN, USA > borgauf@gmail.com