Skip to content

Ensure directory exists before searching for a .cabal file #517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

ivan-m
Copy link
Contributor

@ivan-m ivan-m commented Mar 15, 2015

As requested by @gracjan in #506, this makes haskell-cabal-find-file check that the provided directory actually exists before using it to search for a .cabal file.

@ivan-m
Copy link
Contributor Author

ivan-m commented Mar 15, 2015

Actually, this might not actually work: if the provided directory is nil, then default-directory is used... which will also be nil as that's the directory of the buffer.

So let me do this another way then.

@ivan-m ivan-m closed this Mar 15, 2015
@ivan-m ivan-m deleted the cabal-nonexistent-directories branch March 15, 2015 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant