Function: haskell-cabal-get-dir
haskell-cabal-get-dir is a natively compiled function defined in
haskell-cabal.el.
Signature
(haskell-cabal-get-dir &optional USE-DEFAULTS)
Documentation
Get the Cabal dir for a new project.
Various ways of figuring this out, and indeed just prompting the user. Do them all.
Source Code
;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-cabal.el
;;;###autoload
(defun haskell-cabal-get-dir (&optional use-defaults)
"Get the Cabal dir for a new project.
Various ways of figuring this out, and indeed just prompting the user. Do them
all."
(let* ((file (haskell-cabal-find-file))
(dir (if file (file-name-directory file) default-directory)))
(if use-defaults
dir
(haskell-utils-read-directory-name
(format "Cabal dir%s: " (if file (format " (guessed from %s)" (file-relative-name file)) ""))
dir))))