From 511aa3568c0f2c39919753036067eb5e4efb0f30 Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Wed, 5 Mar 2025 01:45:48 +0300 Subject: [PATCH 1/2] haskell-c2hs.el: don't quote face inside a list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A face is represented by a symbol, however representing a symbol inside lists requires no quoting. So remove the quote. Fixes warning: haskell-c2hs.el:37:19: Error: in defface for ‘haskell-c2hs-hook-pair-face’: Value for face attribute ‘:inherit’ should not be quoted --- haskell-c2hs.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haskell-c2hs.el b/haskell-c2hs.el index 8eb31ff8..092f4753 100644 --- a/haskell-c2hs.el +++ b/haskell-c2hs.el @@ -34,12 +34,12 @@ (add-to-list 'auto-mode-alist '("\\.chs\\'" . haskell-c2hs-mode)) (defface haskell-c2hs-hook-pair-face - '((t (:inherit 'font-lock-preprocessor-face))) + '((t (:inherit font-lock-preprocessor-face))) "Face for highlighting {#...#} pairs." :group 'haskell) (defface haskell-c2hs-hook-name-face - '((t (:inherit 'font-lock-keyword-face))) + '((t (:inherit font-lock-keyword-face))) "Face for highlighting c2hs hook names." :group 'haskell) From 48dfdfa52d137b9d7148d5a196e567c624e6fa53 Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Wed, 5 Mar 2025 01:50:06 +0300 Subject: [PATCH 2/2] haskell-commands.el: clarify list type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: haskell-commands.el:49:10: Error: in defcustom for ‘haskell-mode-stylish-haskell-args’: ‘list’ without arguments --- haskell-commands.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haskell-commands.el b/haskell-commands.el index f9ed3da4..c9ae488b 100644 --- a/haskell-commands.el +++ b/haskell-commands.el @@ -46,7 +46,7 @@ (defcustom haskell-mode-stylish-haskell-args nil "Arguments to pass to program specified by haskell-mode-stylish-haskell-path." :group 'haskell - :type 'list) + :type '(list string)) (defcustom haskell-interactive-set-+c t