Repository navigation
Add Haskell development environment via mise - #6967
calledtoconstruct wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds first-class Haskell environment support (via GHCup) and ensures GHCup-provided tools are available to non-interactive/session apps by integrating ~/.ghcup/env into the bootstrapped PATH logic.
Changes:
- Source
~/.ghcup/envinenv-bootstrapwhen present, with tests covering both present/absent cases. - Add Haskell install/remove actions (including LazyVim integration) and expose them in the Omarchy menu.
- Update the development tools manual to mention Haskell + GHCup.
Reviewed changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test/shell.d/dev-env-path-test.sh | Adds coverage to ensure GHCup PATH is only applied when ~/.ghcup/env exists. |
| manual/18-development-tools.md | Documents Haskell availability and that it’s managed via GHCup (not Mise). |
| default/omarchy/omarchy-menu.jsonc | Adds menu entries to install/remove Haskell based on ~/.ghcup presence. |
| default/bash/env-bootstrap | Sources ~/.ghcup/env so GUI/session apps inherit Haskell toolchain PATH. |
| bin/omarchy-remove-dev-env | Adds Haskell removal, removes LazyVim integration and attempts to clean shell rc changes. |
| bin/omarchy-install-dev-env | Adds Haskell installation via GHCup and writes LazyVim config to use GHCup’s HLS. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 6 changed files in this pull request and generated no new comments.
Suppressed comments (1)
default/bash/env-bootstrap:45
- Sourcing
~/.ghcup/envexecutes arbitrary shell code in a non-interactive/session context. To reduce exposure, consider avoidingsourcealtogether (e.g., only prepend~/.ghcup/binto PATH if the directory exists) or add basic checks before sourcing (regular file, owned by the current user, not group/world-writable) so a tampered env file can’t be used for code execution.
# GHCup writes this when Haskell is installed. Source it so session apps
# (including Neovim) see ghc/cabal/hls without an interactive shell.
if [ -r "$HOME/.ghcup/env" ]; then
. "$HOME/.ghcup/env"
fi
e845e91 to
8a48bb6
Compare
|
Rebased onto current quattro. Menu install row uses
|
|
Converted to draft. Omarchy wants feature ideas in Discussions first. Suggestion: #11265 — happy to mark this ready if that lands. |
8a48bb6 to
1bf1216
Compare
1bf1216 to
8f27b89
Compare
[Medium impact] The PR appears safe to merge; no new actionable issue or outstanding previous finding remains. SummaryThe PR adds a Haskell development environment using mise, with install and removal commands, menu entries, documentation, and tests. The installer now stops and reports a failed step; the menu permits retrying an incomplete install and removing a partial one. Reviews (4) · Last reviewed commit: "Show Haskell removal when any of the too..." · Reviewed by Greptile |
8dfc095 to
6fab62e
Compare
What
Adds Haskell under Install / Remove → Development. Mise installs GHC and HLS through its GHCup plugin and Cabal through aqua. The installer adds
bcbecause that plugin uses it to compare HLS versions. The menu treats~/.local/share/mise/installs/ghcthe same way the other mise languages treat their install directories.Discussion: #11265
Test plan
bash test/shell.d/dev-env-haskell-test.shbash test/shell.d/menu-test.sh