Add configuration to use hie-wrapper to launch hie (default: false) #41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following up on haskell/haskell-ide-engine#439.
This adds a hie-wrapper.sh script, which tries to automatically select a hie version that matches the GHC version of the project.
It is enabled by a configuration flag,
useHieWrapper
, which is set to false by default, until we know if it is stable enough to enable by default. It assumes that the user has built different versions of hie and postfixing them with the GHC their are built for (falling back to plainhie
). I've added a Makefile to make this easy in haskell/haskell-ide-engine#447.I'm amenable to any changes to the script etc, just let me know if there's something you would prefer instead!
Also, I set
debug=1
for now, so one cantail -f /tmp/hie-wrapper.log
to see if it works. It'll look something like,