From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UxQYFTEuHl/pQgAA0tVLHw (envelope-from ) for ; Mon, 27 Jul 2020 01:30:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aCuJEDEuHl/EUwAAbx9fmQ (envelope-from ) for ; Mon, 27 Jul 2020 01:30:25 +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 775FE9404E1 for ; Mon, 27 Jul 2020 01:30:24 +0000 (UTC) Received: from localhost ([::1]:33494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzryB-00082f-9H for larch@yhetil.org; Sun, 26 Jul 2020 21:30:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzrxY-00082S-5e for emacs-orgmode@gnu.org; Sun, 26 Jul 2020 21:29:44 -0400 Received: from pb-smtp20.pobox.com ([173.228.157.52]:59646) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzrxV-0001u3-Lx for emacs-orgmode@gnu.org; Sun, 26 Jul 2020 21:29:43 -0400 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 202D7F4EE2; Sun, 26 Jul 2020 21:29:39 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=Bv/JdidrE86C3Vft6NjYbIXDf60=; b=FmJYBi ZSFtjWWjiu3fxS/qysrfdrWT2L5/D7dI3tIuYPqNuzrmHuqTaAduL+iMChK61gPc LwT6KfnZm7ZNuf/xFA5nQXO4/r+kDBC9AAoIK77O2PxMTwHcbsvMrzUl9MG/KO2S yeq0iPq4EnSwD07btxw6e5tsrflSHmTo2NcVY= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 1A5A7F4EE1; Sun, 26 Jul 2020 21:29:39 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=mesmtp; bh=QhNA/nVsbXnfkEvufEm2SVVS/Ij1daWBdwo5uCbxYBg=; b=mCzkQHOwRkA8/roJZdDHcV/TSZpVgaxz2Gq0ObJAaf85SZhx1XTTUfnHMCiNMVvzN3rQKWsUoYdH4v4x3DzyN8JxsAmb5eiB1vd3t8xnaiKoWkQat8P0I59bWVaJ24LTz4qCA/eMhnRleAwRo+j5/Zsn9SeTb6IUzaa0Saioc6c= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id 83E46F4EDF; Sun, 26 Jul 2020 21:29:36 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: Seth Lee Subject: Re: [PATCH] Update ob-haskell from deprecated inf-haskell-mode to haskell-interactive-mode In-Reply-To: References: Date: Sun, 26 Jul 2020 21:29:34 -0400 Message-ID: <87o8o1ycch.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: A1E11A08-CFA8-11EA-A26E-F0EA2EB3C613-24757444!pb-smtp20.pobox.com Received-SPF: pass client-ip=173.228.157.52; envelope-from=kyle@kyleam.com; helo=pb-smtp20.pobox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/26 21:15:22 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no 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: , Cc: emacs-orgmode@gnu.org 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=pobox.com header.s=sasl header.b=FmJYBi Z; dkim=pass header.d=kyleam.com header.s=mesmtp header.b=mCzkQHOw; dmarc=none; 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: -1.21 X-TUID: W7uQqiB4yJGZ Seth Lee writes: > Issue: compiling code in a source block that had an infinite list that > would evaluate in the ghci. All code, even with `:compile` flag set > would be run in ghci. > > Updating deprecated `inf-haskell-mode` to `haskell-interactive-mode` > solves the issue for me. > > Source blocks flagged to compile will compile in a temp file, and > those flagged otherwise will be run interactively. This is the > intended behaviour. > > Patch attached. Thanks for the patch. > Subject: [PATCH] ob-haskell.el: Update deprecated functions > > * lisp/ob-haskell.el: Update to haskell-interactive-mode from inf-haskell-mode > > Deprecated commands from inf-haskell mode would send source blocks > flagged to compile to the interpreter instead of compiling in a temp > file. > > TINYCHANGE I admit that I don't really have a good understanding of the situation but... > --- > lisp/ob-haskell.el | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lisp/ob-haskell.el b/lisp/ob-haskell.el > index 84e2d6c42..01d658615 100644 > --- a/lisp/ob-haskell.el > +++ b/lisp/ob-haskell.el > @@ -43,9 +43,9 @@ > (require 'comint) > > (declare-function haskell-mode "ext:haskell-mode" ()) > -(declare-function run-haskell "ext:inf-haskell" (&optional arg)) > +(declare-function run-haskell "ext:haskell-interactive-mode" (&optional arg)) > (declare-function inferior-haskell-load-file > - "ext:inf-haskell" (&optional reload)) > + "ext:haskell-process-load-file" (&optional reload)) > (declare-function org-entry-get "org" (pom property &optional inherit literal-nil)) ... I'm confused that the patch consists solely of modifying declare-function calls. While that can appease the Emacs byte-compiler, I'm not seeing how it could relate to the problem you describe.