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

some way to set different per-project paths to ghc-mod #83

Open
wolftune opened this issue Sep 18, 2015 · 2 comments
Open

some way to set different per-project paths to ghc-mod #83

wolftune opened this issue Sep 18, 2015 · 2 comments

Comments

@wolftune
Copy link

Since Stack now supports having projects on the same system use multiple versions of GHC, it would be ideal for ghcmod-vim to recognize somehow which ghc-mod to use for a given project.

Perhaps a dot file in the project directory could be used to pass info? I'm not sure what other approach could make sense.

The process as I imagine it would be this: in the project directory, stack build ghc-mod then stack exec which ghc-mod will output the full path to the ghc-mod built for that project. Then, that path can be somehow used when working on the particular project and would vary when working on a different project, depending on if it uses a different GHC etc. (Stack shares executables among projects that all use the same Stackage snapshot, which will include ghc-mod after the next LTS version).

@wolftune
Copy link
Author

this might be something needing to be fixed upstream in ghc-mod and/or stack. I brought it to the attention of the ghc-mod dev already

@mrak
Copy link

mrak commented Jan 27, 2016

I would like to be able to do this, too. I prefer not to have a global ghc and ghc-mod and instead use tools from within the current project

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

2 participants