Skip to content

Commit 6e8e947

Browse files
committed
Shortcut haskell-flymake-init when there is no saved check command
See #1704
1 parent bbdbc0e commit 6e8e947

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

haskell-mode.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,12 +1057,12 @@ See `haskell-check-command' for the default."
10571057

10581058
(defun haskell-flymake-init ()
10591059
"Flymake init function for Haskell."
1060-
(let ((checker-elts (and haskell-saved-check-command
1061-
(split-string haskell-saved-check-command))))
1062-
(list (car checker-elts)
1063-
(append (cdr checker-elts)
1064-
(list (haskell-flymake-create-temp-buffer-copy
1065-
'flymake-create-temp-inplace))))))
1060+
(when haskell-saved-check-command
1061+
(let ((checker-elts (split-string haskell-saved-check-command)))
1062+
(list (car checker-elts)
1063+
(append (cdr checker-elts)
1064+
(list (haskell-flymake-create-temp-buffer-copy
1065+
'flymake-create-temp-inplace)))))))
10661066

10671067
(add-to-list 'flymake-allowed-file-name-masks '("\\.l?hs\\'" haskell-flymake-init))
10681068

0 commit comments

Comments
 (0)