Function: haskell-check
haskell-check is an interactive and natively compiled function defined
in haskell-mode.el.
Signature
(haskell-check COMMAND)
Documentation
Check a Haskell file (default current buffer's file).
Runs COMMAND, a shell command, as if by compile.
See haskell-check-command for the default.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-mode.el
;; Like Python. Should be abstracted, sigh.
(defun haskell-check (command)
"Check a Haskell file (default current buffer's file).
Runs COMMAND, a shell command, as if by `compile'.
See `haskell-check-command' for the default."
(interactive
(list (read-string "Checker command: "
(or haskell-saved-check-command
(concat haskell-check-command " "
(let ((name (buffer-file-name)))
(if name
(file-name-nondirectory name))))))))
(setq haskell-saved-check-command command)
(save-some-buffers (not compilation-ask-about-save) nil)
(compilation-start command))