Skip to content

Commit

Permalink
Merge pull request #785 from ocecaco/bugfix-cabal-get-dir-default
Browse files Browse the repository at this point in the history
Determine proper default Cabal directory when no Cabal project
  • Loading branch information
gracjan committed Jul 29, 2015
2 parents 418ee70 + 1385b47 commit 6d941ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haskell-cabal.el
Expand Up @@ -190,7 +190,7 @@ file), then this function returns nil."
"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 (when file (file-name-directory file))))
(dir (if file (file-name-directory file) default-directory)))
(haskell-utils-read-directory-name
(format "Cabal dir%s: " (if file (format " (guessed from %s)" (file-relative-name file)) ""))
dir)))
Expand Down

0 comments on commit 6d941ee

Please sign in to comment.