Let Projectile choose haskell-build-type if possible #1874
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.
Overview:
This patch enhances Haskell Mode by integrating Projectile to determine whether Stack, Cabal, or system GHC should be used for a project. Previously, GHC selection relied on auto-detection, which could mistakenly pick up unintended project files (e.g., a stray stack.yaml in the home directory). This change gives users explicit control over the selection based on their project's context.
What This Patch Does:
Benefits:
Testing:
Conclusion:
This update makes Haskell Mode more robust and user-friendly by giving users direct control over how GHC is selected per project. It prevents unintended behavior while integrating well with the existing Emacs tooling.
Let me know if any refinements are needed!