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 gDsNMlP9V2NBPQEAbAwnHQ (envelope-from ) for ; Tue, 25 Oct 2022 17:14:27 +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 oPMrMVP9V2NvigAAG6o9tA (envelope-from ) for ; Tue, 25 Oct 2022 17:14:27 +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 8690C8240 for ; Tue, 25 Oct 2022 17:14:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onLa3-0000Mt-5z; Tue, 25 Oct 2022 11:11:05 -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 1onLZy-00088d-Ld for emacs-orgmode@gnu.org; Tue, 25 Oct 2022 11:10:58 -0400 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onLZi-0003D8-EG for emacs-orgmode@gnu.org; Tue, 25 Oct 2022 11:10:47 -0400 Received: by mail-ed1-x533.google.com with SMTP id y12so16430321edc.9 for ; Tue, 25 Oct 2022 08:10:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=5wYftaUbYoi3O9QJEPnJwEW61TAKYWE9SIke3U/DmLc=; b=p1bsh+FUrtM268/wzf1/8Hvh93naEZejhZaFm6qAHwTr5x7ST1WHcHDgmSWKiCKozh Kf61VffgljhiXfLA9r0Ynr7vxsjpUl2cGi2ymKpL2ldxXWVH+DPZ6al1p1uOLlxRsIng BexK1xKmldMnIO283UVdHGtIw8djeOSECizVGCdHrQXa5tSEDhe3GASxzAI/VkFWTRx9 Yc99xKwYl5wGoyCU7BA8e5EZPx/AXHtIZkWHswew02ob9TcwcPbM+U6YJevFWtkFh1Dj IcdXI2QNEqO7Ai08IdcuX9d+oaT1aTusWTuX2ORC+O8HYv6FbRzW3vkebMIRij6uI3sa Ig5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:user-agent:references:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5wYftaUbYoi3O9QJEPnJwEW61TAKYWE9SIke3U/DmLc=; b=dHZFAqHmrItHThVSvIwbVhdHkBsGvc9MfwRRsAjKMeRNlJ5BJ6eS2rVjvF7y41Vht8 8Uy4ha1MX/FlsmGsc+sYlhtiD6IEMDmagHmhSKfXzxrGmLh4mQu/zsgkU4CJYWbcR2bC gIJ62bZbBv2lNYuOKmd9V4MY52V/gGS58dBfploSItr3dkcy+oqhZVJyjx5KTThvsaq6 kLC8oHaWxvS9p98I4nluBzG+pk3WpvwdxPWjVvVfxcP7bUMQVTQKl8fXsfm0NGr3i9Gu DNoWyoalG/KT0Blj8pVatRtJvTZ9PVAQlHLpIKX9y0QYS9EIxFVpuPIzqOYg5KO2RARd 5GHg== X-Gm-Message-State: ACrzQf2MVKXd6dWOxC9qwC0WXVuYobpUFlejRFEj90qE39tJig9xr17W 4qQdPineQGdUFC8YNLUQZtZ26kA1qpPOvIw= X-Google-Smtp-Source: AMsMyM5zsxjFqRBJD9vlhWtehYajnWAX97NL+9Kg8aspQbuhbUw7OzVvPcoq+6e8VAa3QpVw1iweAA== X-Received: by 2002:a05:6402:5250:b0:461:e870:850f with SMTP id t16-20020a056402525000b00461e870850fmr7487511edd.404.1666710640468; Tue, 25 Oct 2022 08:10:40 -0700 (PDT) Received: from localhost (94-21-158-133.pool.digikabel.hu. [94.21.158.133]) by smtp.gmail.com with ESMTPSA id g3-20020a056402180300b0045c3f6ad4c7sm1792469edy.62.2022.10.25.08.10.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 08:10:40 -0700 (PDT) References: <87r0ywvtqp.fsf@gmail.com> User-agent: mu4e 1.8.10; emacs 28.2 From: Dominik Schrempf To: Emacs Org Mode Mailing List Subject: Re: Org Haskell code blocks Date: Tue, 25 Oct 2022 17:08:22 +0200 In-reply-to: <87r0ywvtqp.fsf@gmail.com> Message-ID: <87ilk8szv4.fsf@gmail.com> 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::533; envelope-from=dominik.schrempf@gmail.com; helo=mail-ed1-x533.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org 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=1666710867; 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=5wYftaUbYoi3O9QJEPnJwEW61TAKYWE9SIke3U/DmLc=; b=CEGQp7p1dx7h9inq54b9prCgbPx3hUtYptPe3nWHLF5L9v9olLHKndBsLviveRjTESnPau mh0e80IPQRSCVwe+6IVMjJ6lkwCPU2k85znLr986K6UAgPETG7l7JT/dBxgw/wDn/qU9Mb es7QDrbt7oN2wkqI6txQG9MLuJCCegaN/9DdmG//uiS76o/Zxg6TcChOXfygXCXCnXFkSG IqnBdTc+oErzSus5ah3gRdqDsx+YqIis0xdHlOVoB2oaPaaTM1QoKVFqyb8G7eT1BdutuN ChhH1PwaNiiGK+XDJzWFqka1cTrX2GMeGB19H1Mxnas0ePiW/mBO1qmiIsrUPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666710867; a=rsa-sha256; cv=none; b=MtulEMdTAHI+MM2gXKcREyMN/qAwLrDAro61xHHi5KY38eyVgmxGWKC7TP8fqsAYUuWdXX DoBZXrbpc9om9tRzpjdC/zTntTPVvK5LEG8CpCLDVhj98KUJdiJxcyF5OXVscy+GxTlagh OjWIoJEovTotCZ/lksJkQAe4lWOdrkG6XAMdwTcejw67jfilviPADc9qj9zgBenKksk90k PhXiCzXX9RHYRrn4yWF721YdYVDRLrd0kgwO9/1cCIrMKtkLUQtJiY0pCMCl2i2GQHuxXj cS0fuJQuva1B9YaT3ftGm21oiNqpyKgjl4xkxDOu1ik6LCZPpB6OPCfoaa5pvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=p1bsh+FU; dmarc=pass (policy=none) header.from=gmail.com; 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: -9.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=p1bsh+FU; dmarc=pass (policy=none) header.from=gmail.com; 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: 8690C8240 X-Spam-Score: -9.71 X-Migadu-Scanner: scn0.migadu.com X-TUID: tBw++9eDDOgF I apologize, the settings described in Point 1 actually have no effect. Multi line input works out of the box (at least with "ghci" as described). However, the result output is still scrambled (e.g., empty lines, unnecessary "ghci>" prompts in results) Dominik Dominik Schrempf writes: > Hello, > > I have trouble using Haskell code blocks in Org Mode. > > 1. I need to use the following Org Mode file header: > > #+property: :header-args:haskell: :prologue ":{\n" :epilogue ":}\n" > > #+begin_src haskell :exports none :results none > :set prompt-cont "" > #+end_src > > Otherwise, the results of Haskell code blocks are scrambled. > > 2. I need to set `haskell-process-type' to `ghci'. The default > interpreter `cabal-repl' does not find any external modules (even core > modules included with GHC). > > However, I get the error message "org-babel-script-escape: > =E2=80=98org-babel-script-escape=E2=80=99 expects a string", when executi= ng the first > code block which starts the interpreter. Seemingly, the error has no > effect because everything works fine. > > 3. I have to set `org-edit-src-content-indentation` to 0, and always put > the source code to text column 0, otherwise syntax highlighting does not > work. > > Do others have the same problems? If so, have there been discussions > about how to improve this situation? > > Thank you for your help! > > Dominik