Function: haskell-align-imports-fill

haskell-align-imports-fill is a natively compiled function defined in haskell-align-imports.el.

Signature

(haskell-align-imports-fill PADDING LINE)

Documentation

Fill an import line using the padding worked out from all statements.

Source Code

;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-align-imports.el
(defun haskell-align-imports-fill (padding line)
  "Fill an import line using the padding worked out from all statements."
  (mapconcat #'identity
             (cl-mapcar (lambda (pad part)
                          (if (> (length part) 0)
                              (concat part (make-string (- pad (length part)) ? ))
                            (make-string pad ? )))
                        padding
                        line)
             " "))