Skip to content
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

Why does SHM think I'm using stack? #125

Open
ivan-m opened this issue Feb 16, 2016 · 1 comment
Open

Why does SHM think I'm using stack? #125

ivan-m opened this issue Feb 16, 2016 · 1 comment

Comments

@ivan-m
Copy link
Collaborator

ivan-m commented Feb 16, 2016

So SHM suddenly decides that things like shm-supported-languages is not going to work because it thinks I'm using stack for a project when there isn't even a stack.yaml file in this project.

It seems that the reason being is that shm-stack-find-file is finding my ~/.stylish-haskell.yaml for some strange reason and thinking that because of that I have a stack.yaml file and thus want to use stack.

(Not to mention the seemingly redundant double-usage of not: https://github.com/chrisdone/structured-haskell-mode/blob/master/elisp/shm-stack.el#L27 )

Maybe something like what haskell-mode has could be used:

(and (locate-dominating-file default-directory "stack.yaml")
             (executable-find "stack"))
@ivan-m
Copy link
Collaborator Author

ivan-m commented Jul 27, 2016

This is still happening, and causing problems when using a newer system GHC than the one used by stack.

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

No branches or pull requests

1 participant