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 0At0Mnr462WVAgEA62LTzQ:P1 (envelope-from ) for ; Sat, 09 Mar 2024 06:49:46 +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 0At0Mnr462WVAgEA62LTzQ (envelope-from ) for ; Sat, 09 Mar 2024 06:49:46 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Hlq1lDWM; 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=1709963386; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nRiGxg+KgZU4pC1YUg8yOVFLQaeNIJxdp0UdfNJFUEE=; b=g1fNm6y9ZmJD9F+5GMKi/haJdvsuqMmDagtOA/Ri2EzT1YxL41wZs9r83fZoeCcmbfkPWQ OYTd7iZc0u/5C3zQ+ASl2TYVJv001ZW4ynhPewVfQOgHgt4lfhkisoeujoOp+8dxyF8+Mv 4I166o9rYO5jRzygYkH0ATGjNDmBfjfr0VLtDqWiqZsTki8tctVVYdx65nps5trTSQUZgq WEpbvvHE8LAiqBJEnot5I4Kou9aBAsV/RGiMKvdFwdadl+mZenHzxn77S4vK53ytkx+SnV 6S02/OJuGHJouT1U6kxR920j4GsI9eZF7tUfSuIAXvX+ZymrfH46ifL0yUV/jQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709963386; a=rsa-sha256; cv=none; b=aUVOwaJHoiCZbnH4I+wGGxSmgwk8huVCPMGNFeROdXVXjEOuwUTSPjIvbJUCvtds9OTeql mMs+Im81TIlu9CFzKFuzBbZiHd7TrD1zdsX/+lbj5nJSNUbb/wUdYNbDK8OkmcHcKtg/Om 3vJtWttDEblWCr4gx+WWwnWgQwnatFxAn4hrpbRD648E4puL2O/OlYJ+bjvp+TaOW53R2s OVKJDnbdp2nvb7vvrPNK4o0eEQc4G1k7Dwy2+YP1egLnUKo9nwj0rX2sSuZuuPdh7N9kVI xZSVPwutrtXo/Iu5ycqro/z23n18idssRuXKkNj6/rKgSzOTRjHLj1lDrJWhUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Hlq1lDWM; 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 7CC6D40C3A for ; Sat, 9 Mar 2024 06:49:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ripZc-0002y3-TJ; Sat, 09 Mar 2024 00:48:44 -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 1ripZb-0002xf-39 for emacs-orgmode@gnu.org; Sat, 09 Mar 2024 00:48:43 -0500 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ripZZ-0003Wj-GN for emacs-orgmode@gnu.org; Sat, 09 Mar 2024 00:48:42 -0500 Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-42e29149883so7714601cf.2 for ; Fri, 08 Mar 2024 21:48:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709963319; x=1710568119; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=nRiGxg+KgZU4pC1YUg8yOVFLQaeNIJxdp0UdfNJFUEE=; b=Hlq1lDWMf/xUyfUt7B/krIUJjSfHAhPWuPnDioKbwydjaG50dDDsT783Chh8mwJnAV /tDiNHh62j9h4gRvCnbmC8xt+fmbX2uFXs0HPOkt6AWcvsbVgbMke8xjWGoxGJYB/7Ig Ol+/hwfjmKwzsKYQpXkvH0Pmy9AFFqUeGmtJ+5e7kcOvFxooLbh2bl9QcvSBCc5O30ji WQvNtQEoAZawXj2HoOrhl/QyrSKgyVZRFuhEvShS/vetl8WCE3q475zmk/9Q34T7J85T 3wyQ+YQFui2Q896NxrBOelfMl6ZMsw3B852rwvaq+Ce7nXUUKY6DWm7uGGYhzfsLSjaQ H0Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709963319; x=1710568119; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=nRiGxg+KgZU4pC1YUg8yOVFLQaeNIJxdp0UdfNJFUEE=; b=WEjtKO7yYQJh/NyffwWj/teP2aRXA+BZUMnwuDLpeqHBeJUINAxY1OK8JE/HMj3SXT kp63+xApB4mpX94cBvrG5W9f9lv1kJCwgMgsv5Q0+g42++EZv5wyDwCLEC9zfZOIhfqX Wk62KgTEvQ2BoISTM/SgdUb+pRr7YoapEcPq8gulAYN1u5erR44mCmgpeZ53KYW+jfXa 1vB53h1/mmjEe4Pdgv5g5IRtMDiswB2rX+ynDd9juvzacaLmMEZJXAY0O900bO1mcmSL Bl3oSSjhZkuX+GKF7sPq7lnPWEGviFbE+eD7kAXalE550aLKsjK30DSHyccNxQsi/BlT 8SRg== X-Gm-Message-State: AOJu0YwvKd+FPt0c9ETcCXGCqDfe1BKhu2nDUrBBvb+LfDewoqvKh5A1 P6IRZsSm6epa/ESMGc1KwzQG2uhoeP39r9LYmMjKnbrAcJ+dgZR8dIN7Z4p53BsmTRbFu4JYiZ8 Ecmr1g+8weCGdvzDbGV8A2xZRMD60gggtTXSm1Q== X-Google-Smtp-Source: AGHT+IFh8KsMRKoXqjya2CRxG+OBwONBMsdi8s16B+FZ6TWnMCrHb4PzFdqcfhf3FqZqBjM2uVnBeUZvrYeo+E3BfGI= X-Received: by 2002:ac8:7f95:0:b0:42e:be5c:93b3 with SMTP id z21-20020ac87f95000000b0042ebe5c93b3mr1681088qtj.56.1709963319243; Fri, 08 Mar 2024 21:48:39 -0800 (PST) MIME-Version: 1.0 From: Laurence von Bottorff Date: Fri, 8 Mar 2024 23:48:26 -0600 Message-ID: Subject: ob-haskell and changing executables? To: emacs-orgmode Mailinglist Content-Type: multipart/alternative; boundary="00000000000038fd11061333dcfa" Received-SPF: pass client-ip=2607:f8b0:4864:20::82b; envelope-from=borgauf@gmail.com; helo=mail-qt1-x82b.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, HTML_MESSAGE=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: -5.60 X-Spam-Score: -5.60 X-Migadu-Queue-Id: 7CC6D40C3A X-Migadu-Scanner: mx11.migadu.com X-TUID: 3rPQZzjiC2Bq --00000000000038fd11061333dcfa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Emacs Customize Haskell was confusing and my init only had one relevant entry anyway, which didn't help when I changed it. In the /usr/bin directory the Haskell execs are linked to just one specific version. In my case /usr/bin contained symbolic links ghc -> ghc-9.0.2 and ghci -> ghci-9.0.2. This is not great, since Haskell in the wild is project-based, i.e., differing versions of the ghc compiler can be used in different projects, as well as wildly diverging libraries and packages per project. Obviously Babel can't easily take advantage of this, but Haskell does allow "system-wide" library installs. My solution was to simply delete the symlinks in /usr/bin and create new ones to the ghcup tools, e.g., ghc -> ~/.ghcup/bin/ghc etc. So now it works properly and calls up the new ghcup ghci when I do a Haskell Babel block, but this is a kludge. No elisp master, I can't find where this /usr/bin address is hardwired. 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. --=20 =E2=A8=BD Lawrence Bottorff Grand Marais, MN, USA borgauf@gmail.com --00000000000038fd11061333dcfa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm on Debian 12 and I just started using Haskell'= s ghcup=C2=A0tools, 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 fi= rst. But when I try a Babel code block, ob-haskell seems to have the /usr/b= in versions hardwired somewhere and calls up the old ghci REPL. Searching t= hrough Emacs Customize Haskell was confusing and my init only had one relev= ant entry anyway,=C2=A0which didn't help when I changed it.

In the /usr/bin directory the Haskell execs are linked to just one = specific version. In my case /usr/bin contained symbolic links ghc -> gh= c-9.0.2 and ghci -> ghci-9.0.2. This is not great, since Haskell in the = wild is project-based, i.e., differing versions of the ghc compiler can be = used in different projects, as well as wildly diverging libraries and packa= ges per project. Obviously Babel can't easily take advantage of this, b= ut Haskell does allow "system-wide" library installs.

My solution was to simply delete the symlinks in /usr/bin and creat= e=C2=A0new ones to the ghcup=C2=A0tools, e.g., ghc -> ~/.ghcup/bin/ghc e= tc. So now it works properly and=C2=A0calls up the new ghcup ghci when I do= a Haskell Babel block, but this is a kludge. No elisp master, I can't = find where this /usr/bin address is hardwired. If you've gotten this fa= r you probably know more about the Haskell Babel situation than you ever wa= nted to, but maybe you can sniff out where this hardwire is happening.=C2= =A0

= --
=E2=A8=BD
Lawrence Bottorff=
Grand Marais, MN, USA
--00000000000038fd11061333dcfa--