From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2C1HJrR2T2NlzgAAbAwnHQ (envelope-from ) for ; Wed, 19 Oct 2022 06:01:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qMGJJbR2T2MZYwEAG6o9tA (envelope-from ) for ; Wed, 19 Oct 2022 06:01:56 +0200 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 8B48A2C66E for ; Wed, 19 Oct 2022 06:01:55 +0200 (CEST) Received: from localhost ([::1]:57942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol0HC-00066O-O4 for larch@yhetil.org; Wed, 19 Oct 2022 00:01:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol0E3-000645-4d for emacs-orgmode@gnu.org; Tue, 18 Oct 2022 23:58:40 -0400 Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:52731 helo=progateway7-pub.mail.pro1.eigbox.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol0Dw-00042Q-Lx for emacs-orgmode@gnu.org; Tue, 18 Oct 2022 23:58:38 -0400 Received: from cmgw13.mail.unifiedlayer.com (unknown [10.0.90.128]) by progateway7.mail.pro1.eigbox.com (Postfix) with ESMTP id 15EA8100455AA for ; Wed, 19 Oct 2022 03:58:05 +0000 (UTC) Received: from box2035.bluehost.com ([74.220.219.237]) by cmsmtp with ESMTP id l0DUoUMDPMFuLl0DUoqUml; Wed, 19 Oct 2022 03:58:05 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=F9ySyotN c=1 sm=1 tr=0 ts=634f75cd a=VozZY++RX3oc2UgfNhVfaA==:117 a=VozZY++RX3oc2UgfNhVfaA==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10:nop_charset_1 a=MKtGQD3n3ToA:10:nop_fastflux_from_domain_1 a=1oJP67jkp3AA:10:nop_fastflux_mid_domain_1 a=Qawa6l4ZSaYA:10:nop_rcvd_month_year a=DPR-AOO6AYYA:10:endurance_base64_authed_username_1 a=A2tt7buDTgEA:10:from_fastflux_domain1 a=uChsZFC9AAAA:8 a=NR0c4wBeAAAA:8 a=o9zw6IYYAAAA:8 a=ZpAJvFZrVrOZP1yNxSAA:9 a=QEXdDO2ut3YA:10:nop_charset_2 a=d_VElMKDodcA:10:uccc_2email_address a=-FEs8UIgK8oA:10:nop_fastflux_domain_1 a=ULtXvzFHYWHLyBAuiDia:22 a=G2KcVEonv2vs_TJwQPGf:22 a=BtxB1_lq3pBo68oZtZ_9:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tsdye.online; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:In-reply-to:Date:Subject:Cc:To:From:References:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3LvQcMm4zS8zVBoyEy9fonm4Ua59AkULk7yUfoPZskM=; b=nROuxpTxAyUER3gAWQ7YrZntm3 zWGtlhQ+3aMlROI5/JmGUEyi3v9geZRxqACujDlou+/F3O5++sSS1Kn3l3dHbERAblPwKZYRA+PRF h1mQJrzg2TNJDW6KqVGMUl/fnBstlSIo0psNGWzMle2I31a25elha/AWudAVWwGP0V4Mqnc7QrGfw 5bptvw+jwcRXzL+gbU9O8B+H8TgTSn0BhGpg9bPTo0Hr1XSjmuH2tXU9WRWcWw8mPi8uleNDjn6lT plJ8QEaV77JZfdJSF0284S/jW8ZkOsHH3pkT4cMGCDHDFSGhUU+BqzGvUQ16r46HFEczEAAclUgMF 0yyuWqhA==; Received: from cpe-50-113-33-148.hawaii.res.rr.com ([50.113.33.148]:33668 helo=poto-foou.tsdye.online) by box2035.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1ol0DT-002inN-Mi; Tue, 18 Oct 2022 21:58:03 -0600 References: <87a6gdaa9i.fsf@tsdye.online> <87tu40cyo5.fsf@localhost> User-agent: mu4e 1.6.10; emacs 27.1 From: "Thomas S. Dye" To: Ihor Radchenko Cc: "Thomas S. Dye" , emacs-orgmode Subject: Re: Haskell code blocks Date: Tue, 18 Oct 2022 17:50:30 -1000 In-reply-to: <87tu40cyo5.fsf@localhost> Message-ID: <878rlcqxcn.fsf@tsdye.online> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box2035.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tsdye.online X-BWhitelist: no X-Source-IP: 50.113.33.148 X-Source-L: No X-Exim-ID: 1ol0DT-002inN-Mi X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-50-113-33-148.hawaii.res.rr.com (poto-foou.tsdye.online) [50.113.33.148]:33668 X-Source-Auth: tsd@tsdye.online X-Email-Count: 2 X-Source-Cap: dHNkeWVvbmw7dHNkeWVvbmw7Ym94MjAzNS5ibHVlaG9zdC5jb20= X-Local-Domain: yes Received-SPF: pass client-ip=67.222.38.55; envelope-from=tsd@tsdye.online; helo=progateway7-pub.mail.pro1.eigbox.com X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.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, FROM_SUSPICIOUS_NTLD=0.001, PDS_OTHER_BAD_TLD=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666152116; 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: 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=3LvQcMm4zS8zVBoyEy9fonm4Ua59AkULk7yUfoPZskM=; b=WL5ZpYY65gf4pO7dADMzF1Tq/y/JlfVFblMx0GaY7kxUCzR/MU2a8UBu378Mm4tHodU1Uj jJ9aFNrtsFbMh/2GYlyY8jDDlNiBU9OwvMshKCNAbZTHCGKFWLfNvoAPsjvAVjAs4vYuFi 7m/q6W1WzXy43VlWjvDVjOSmAqypee+yL9hg9uQM5HjBf4sn/nrADmGXS0yHO4wlUKRUfP BRvkxAIaQozbWmWxHg6x5TaHO+xPkILyOOZ+3XX+kjbKnEg3jW8N4jyu90hHVQd6b0j5Zj 02l93lUL/YuT3ykFQYhTYweQzkgQGSJd0bViTSx3MVDgfYsQgKWTCUriDYx8dw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666152116; a=rsa-sha256; cv=none; b=XPVPq5PslorbQ4f2BfxXyn/LbZDO92fzkabqUtpaDulRfgRL7bkzOSWbkd0kbzMxS4lpAC Vidmf+fk0wt2m5dw/+HlCe5/0RZ8HRujWwENPb751vImQIlQ5XUqs0O9MmvK2MxLuul5Pk xUMb9QnLjViEiju86GsDG7hycydctcTIZKazF3uI+iX9eofY6nSrpmV0cE4vni3CXAG+g7 BfzbT8GiRTTZgDpI/N/FoR6OYe75ccBaVKbYMh4W3lZ191SAuuc7IFBDLfDtt7ZPBbazhh ewPLr+uQKUIt22qkaM7dCvfAYKdqm95FlQId7h6mtHR+nJRJ7aRVXBqiA55I/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tsdye.online header.s=default header.b=nROuxpTx; dmarc=none; 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" X-Migadu-Spam-Score: 2.77 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tsdye.online header.s=default header.b=nROuxpTx; dmarc=none; 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" X-Migadu-Queue-Id: 8B48A2C66E X-Spam-Score: 2.77 X-Migadu-Scanner: scn1.migadu.com X-TUID: vOqropJoEObL Thanks Ihor. I don't actually use Haskell. Earlier this year I=20 attempted to complete the Org Babel language documents on Worg,=20 but couldn't get the obligatory "hello world" code block to behave=20 in Haskell. I'm guessing that ob-haskell.el actually works for=20 experienced Haskell programmers and was hoping someone had a=20 solution to the Prelude> problem. I'm not sure when I might get=20 back to this. All the best, Tom Ihor Radchenko writes: > "Thomas S. Dye" writes: > >> I'm struggling to write a minimal ob-doc-haskell.org for Worg. >> >> I installed Haskell via Spacemacs (development branch) and the=20 >> Haskell installation appears to be functioning correctly. >> >> The obligatory Hello World! example yields bad results. >> >> #+name: haskell-hello-world >> #+begin_src haskell=20 >> main :: IO ()=20 >> main =3D putStrLn "Hello, World!" >> main >> #+end_src >> >> #+RESULTS: haskell-hello-world >> : Prelude> Hello, World! >> >> I'm guessing the "Prelude>" part of the output is the prompt=20 >> from=20 >> the interpreter. >> >> I found this in ob-haskell.el: >> >> (setq-local comint-prompt-regexp >> (concat haskell-prompt-regexp=20 >> "\\|^=CE=BB?>=20 >> ")))) >>=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 >> But I couldn't find a way to modify haskell-prompt-regexp=20 >> without=20 >> changing the source. >> >> Advice welcome. > > I guess you can report this as a bug in Haskell-mode? > haskell-prompt-regexp is defined there. > > If absolutely necessary and if you want that _your_ Haskell=20 > prompt is > different from Haskell-mode defaults, just setq=20 > haskell-prompt-regexp in > your config. --=20 Thomas S. Dye https://tsdye.online/tsdye