Function: haskell-cabal-with-cs-list

haskell-cabal-with-cs-list is a macro defined in haskell-cabal.el.

Signature

(haskell-cabal-with-cs-list &rest FUNS)

Documentation

Format the buffer so that each line contains a list element.

Respect the comma style.

Source Code

;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-cabal.el
(defmacro haskell-cabal-with-cs-list (&rest funs)
  "Format the buffer so that each line contains a list element.
Respect the comma style."
  (let ((comma-style (make-symbol "comma-style")))
    `(let ((,comma-style
            (save-excursion
              (haskell-cabal-strip-list-and-detect-style))))
       (unwind-protect (progn ,@funs)
         (haskell-cabal-listify ,comma-style)))))