Skip to content

Add Haskell development environment via mise - #6967

Open
calledtoconstruct wants to merge 3 commits into
omacom:quattrofrom
calledtoconstruct:add-haskell-dev-env
Open

calledtoconstruct wants to merge 3 commits into
omacom:quattrofrom
calledtoconstruct:add-haskell-dev-env

Conversation

@calledtoconstruct

@calledtoconstruct calledtoconstruct commented Aug 15, 2026 •

Copy link
Copy Markdown

What

Adds Haskell under Install / Remove → Development. Mise installs GHC and HLS through its GHCup plugin and Cabal through aqua. The installer adds bc because that plugin uses it to compare HLS versions. The menu treats ~/.local/share/mise/installs/ghc the same way the other mise languages treat their install directories.

Discussion: #11265

Test plan

  • bash test/shell.d/dev-env-haskell-test.sh
  • bash test/shell.d/menu-test.sh

Copilot AI balanced review requested due to automatic review settings August 15, 2026 12:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/env in env-bootstrap when 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.

Copilot AI review requested due to automatic review settings August 15, 2026 13:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/env executes arbitrary shell code in a non-interactive/session context. To reduce exposure, consider avoiding source altogether (e.g., only prepend ~/.ghcup/bin to 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

@calledtoconstruct

Copy link
Copy Markdown
Author

Rebased onto current quattro. Menu install row uses disabled like the other development entries.

env-bootstrap no longer sources ~/.ghcup/env (user-writable shell in login/uwsm). It appends ~/.ghcup/bin when that directory exists.

@calledtoconstruct
calledtoconstruct marked this pull request as draft September 11, 2026 03:08
@calledtoconstruct

Copy link
Copy Markdown
Author

Converted to draft. Omarchy wants feature ideas in Discussions first. Suggestion: #11265 — happy to mark this ready if that lands.

@calledtoconstruct calledtoconstruct changed the title Add Haskell development environment via GHCup Add Haskell development environment via mise Sep 24, 2026
@calledtoconstruct
calledtoconstruct marked this pull request as ready for review September 24, 2026 01:49
@omarchybot omarchybot added the enhancement New feature or request label Sep 27, 2026
@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issue or outstanding previous finding remains.

Summary

The 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

Comment thread bin/omarchy-install-dev-env Resolved
Comment thread default/omarchy/omarchy-menu.jsonc Resolved
Comment thread test/shell.d/dev-env-haskell-test.sh Resolved
Comment thread default/omarchy/omarchy-menu.jsonc Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants