Closed leofisG closed 4 years ago
Hi! To tell HIE to always use stack
, use a hie.yaml
file! https://github.com/haskell/haskell-ide-engine#project-configuration
Thanks for the response!
But it seems like setting up the hie
.yaml` can be quite tedious if we have multiple components, e.g. more than 15 components. So I am wondering is there any more efficient way to do this?
No, currently not. A fix would be to implement https://github.com/haskell/haskell-ide-engine/issues/1516, which should be quite trivial. There you can tell cabal-helper which build-tool to use.
Another one could be add a cli flag to tell hie prefer one over another: https://github.com/haskell/haskell-ide-engine/issues/1432 (and a vscode config option)
In my current project I have both
stack
andcabal
configuration file, however, how do I set up HIE so that it only uses saystack
?The problem here is that if it uses the other one it won't be able to work properly. My current workaround is temporarily deleting the
cabal.project
file so that it always usesstack
.Thanks for the help!