emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Org lint and Haskell source code blocks


From: Ihor Radchenko
Subject: Re: Org lint and Haskell source code blocks
Date: Tue, 21 Sep 2021 15:16:39 +0800

Dominik Schrempf <dominik.schrempf@gmail.com> writes:

> whenever I have a Haskell source code block in my Org mode file, and I execute
> =org-lint=, I get the following error:

Confirmed.

Can you try with the attached patch?

Best,
Ihor

>From f640249d08a14bfde417c38274634b88c789d1c7 Mon Sep 17 00:00:00 2001
Message-Id: 
<f640249d08a14bfde417c38274634b88c789d1c7.1632208540.git.yantar92@gmail.com>
From: Ihor Radchenko <yantar92@gmail.com>
Date: Tue, 21 Sep 2021 15:10:45 +0800
Subject: [PATCH] Fix org-babel-header-args:haskell not being an alist

* lisp/ob-haskell.el (org-babel-header-args:haskell): The old value of
the variable was not argument alist, as expected by Org babel code.

Fixes 87fsty7750.fsf@gmail.com">https://orgmode.org/list/87fsty7750.fsf@gmail.com
---
 lisp/ob-haskell.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ob-haskell.el b/lisp/ob-haskell.el
index a6f0e55f7..971e1ce6a 100644
--- a/lisp/ob-haskell.el
+++ b/lisp/ob-haskell.el
@@ -70,7 +70,7 @@ (defcustom org-babel-haskell-compiler "ghc"
   :package-version '(Org "9.4")
   :type 'string)
 
-(defconst org-babel-header-args:haskell '(compile . :any)
+(defconst org-babel-header-args:haskell '((compile . :any))
   "Haskell-specific header arguments.")
 
 (defun org-babel-haskell-execute (body params)
-- 
2.32.0


reply via email to

[Prev in Thread] Current Thread [Next in Thread]