DanielG / ghc-mod

Happy Haskell Hacking for editors. DEPRECATED
Other
677 stars 175 forks source link

ghc-mod using the global stack project #879

Open RodideBoer opened 7 years ago

RodideBoer commented 7 years ago

Could ghc-mod use the global stack project when outside of a stack project? It would make my Atom plugins work much nicer with random files outside of a project... :)

DanielG commented 7 years ago

I suppose now that we use the STACK_EXE environment variable as a strong hint that we should prefer stack over cabal we could do that. If you want to implement this I would be happy to point you in the right direction.

RodideBoer commented 7 years ago

I am still in the learning phase of Haskell. Still need to learn about a lot of stuff. Don't think I am capable of adding this feature.

DanielG commented 7 years ago

Actually looking at the code it wouldn't be as easy as I thought. This would need some refactoring of internals.