This repository has been archived by the owner on Oct 7, 2020. It is now read-only.
Add Makefile for building all GHC variants #447
Merged
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 #439.
The Makefile makes it easy to build all the versions of HIE we have for different GHC versions.
It's intentionally sequenced with
&&
, so that~/.local/bin/hie
doesn't get overwritten by another build (can one specify specific executable paths/names? with stack?)The reason for the redundant
~/.local/bin/hie-8.2
is merely that it is using the mainstack.yaml
, which I assume will be changed to a different GHC later on, and this will make sure we don't forget to add the8.2
version of HIE.When we add new stack.yaml's or change GHC versions in the main config, we should update this accordingly.
This is meant to go with a wrapper script that automatically chooses the right version based on the GHC version of the project—PRs for those are under way to VSCode and Atom, and I'll update the README for the other editors after this.