Function: haskell-mode-format-imports

haskell-mode-format-imports is an interactive and natively compiled function defined in haskell-mode.el.

Signature

(haskell-mode-format-imports)

Documentation

Format the imports by aligning and sorting them.

Key Bindings

haskell-mode-map C-c C-,

Source Code

;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-mode.el
(defun haskell-mode-format-imports ()
  "Format the imports by aligning and sorting them."
  (interactive)
  (let ((col (current-column)))
    (haskell-sort-imports)
    (haskell-align-imports)
    (goto-char (+ (line-beginning-position)
                  col))))