Skip to content

registry: add ormolu (github:tweag/ormolu)#8617

Merged
jdx merged 1 commit intojdx:mainfrom
3w36zj6:feature/add-ormolu-to-registry
Mar 19, 2026
Merged

registry: add ormolu (github:tweag/ormolu)#8617
jdx merged 1 commit intojdx:mainfrom
3w36zj6:feature/add-ormolu-to-registry

Conversation

@3w36zj6
Copy link
Copy Markdown
Contributor

@3w36zj6 3w36zj6 commented Mar 16, 2026

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request integrates the 'ormolu' Haskell formatter into the project's registry. By adding its configuration, 'ormolu' becomes discoverable and usable within the system, providing a standardized way to manage and apply code formatting for Haskell projects.

Highlights

  • New Registry Entry: Added 'ormolu', a Haskell source code formatter, to the registry.
Changelog
  • registry/ormolu.toml
    • Added a new configuration file for 'ormolu'
    • Specified 'github:tweag/ormolu' as the backend
    • Included a description: 'A formatter for Haskell source code'
    • Defined a test command 'ormolu --version' with an expected output 'ormolu {{version}}'
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Mar 16, 2026

Greptile Summary

Adds a new registry entry for ormolu, a Haskell source code formatter by Tweag. The entry uses the github:tweag/ormolu backend to install from GitHub Releases.

  • New file registry/ormolu.toml with github:tweag/ormolu backend, description, and version test
  • Test pattern ormolu {{version}} correctly matches the tool's verbose --version output (e.g., ormolu 0.7.7.0 HEAD <hash> using ghc-lib-parser ...) via mise's substring matching
  • Follows established registry conventions for single-backend GitHub tools

Confidence Score: 4/5

  • This PR is safe to merge — it adds a single, well-structured registry TOML file following established conventions
  • Simple, single-file addition that follows all registry conventions. The github:tweag/ormolu backend is valid, the test pattern matches ormolu's version output format correctly via substring matching, and the description is accurate. No logic changes or code modifications involved.
  • No files require special attention

Important Files Changed

Filename Overview
registry/ormolu.toml New registry entry for ormolu (Haskell formatter). Follows standard conventions: single github: backend, description, and test command with correct {{version}} pattern. The test pattern uses substring matching so it correctly handles ormolu's verbose version output.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["mise use ormolu"] --> B["Registry Lookup: registry/ormolu.toml"]
    B --> C["Backend: github:tweag/ormolu"]
    C --> D["Fetch GitHub Release Assets"]
    D --> E["Asset Matcher: Select platform binary"]
    E --> F["Install ormolu binary"]
    F --> G["Test: ormolu --version"]
    G --> H{"Output contains 'ormolu VERSION'?"}
    H -- Yes --> I["Installation verified"]
    H -- No --> J["Installation failed"]
Loading

Last reviewed commit: 617bdc1

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds ormolu, a Haskell code formatter, to the mise registry. The configuration is straightforward and correct. I've suggested adding a detect field to improve automatic tool discovery for Haskell projects. This will allow mise to suggest ormolu when it finds Haskell-related files.

@@ -0,0 +1,3 @@
backends = ["github:tweag/ormolu"]
description = "A formatter for Haskell source code"
test = { cmd = "ormolu --version", expected = "ormolu {{version}}" }
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.

medium

To improve tool discovery for Haskell projects, consider adding a detect field with common Haskell project files. This will help mise suggest ormolu when it detects these files in a project.

Suggested change
test = { cmd = "ormolu --version", expected = "ormolu {{version}}" }
detect = ["*.hs", "*.lhs", "*.cabal", "stack.yaml", "package.yaml"]
test = { cmd = "ormolu --version", expected = "ormolu {{version}}" }

@jdx jdx merged commit 9cd3c65 into jdx:main Mar 19, 2026
35 checks passed
jdx pushed a commit that referenced this pull request Mar 21, 2026
### 🐛 Bug Fixes

- **(config)** resolve trust hash collision for same-name directories by
@tdragon in [#8628](#8628)
- **(docs)** fix width of tools table by @himkt in
[#8625](#8625)
- **(docs)** prevent homepage hero atmosphere overflow by @nygmaaa in
[#8642](#8642)
- **(doctor)** detect PATH ordering issues when mise is activated by
@jdx in [#8585](#8585)
- **(git)** use origin as remote name by @bentinata in
[#8626](#8626)
- **(installer)** normalize current version before comparison by @tak848
in [#8649](#8649)
- **(lockfile)** Resolve symlink when updating lockfiles by @chancez in
[#8589](#8589)
- **(python)** verify checksums for precompiled binary downloads by
@malept in [#8593](#8593)
- **(rust)** resolve relative CARGO_HOME/RUSTUP_HOME to absolute paths
by @simonepri in [#8604](#8604)
- **(task)** correctly resolve task name for _default files with
extensions by @youta1119 in
[#8646](#8646)
- **(tasks)** global file tasks not properly marked as such by @roele in
[#8618](#8618)
- **(tasks)** handle broken pipe in table print and task completion
output by @vmaleze in [#8608](#8608)
- use dark/light logo variants in README for GitHub dark mode by @jdx in
[#8656](#8656)
- failing rebuild of runtime symlinks for shared tools by @roele in
[#8647](#8647)
- add spaces around current element operator in flutter version_expr by
@roele in [#8616](#8616)
- complete task arguments correctly by @KevSlashNull in
[#8601](#8601)

### 📚 Documentation

- switch body font to DM Sans and darken dark mode background by @jdx in
[6e3ad34](6e3ad34)
- use Cormorant Garamond for headers and Roc Grotesk for body text by
@jdx in
[010812a](010812a)
- resolve chaotic heading hierarchy in task-arguments.md by @muzimuzhi
in [#8644](#8644)

### 🧪 Testing

- fix test_java and mark as slow by @roele in
[#8634](#8634)

### 📦️ Dependency Updates

- update docker/dockerfile:1 docker digest to 4a43a54 by @renovate[bot]
in [#8657](#8657)
- update ghcr.io/jdx/mise:alpine docker digest to 2584470 by
@renovate[bot] in [#8658](#8658)

### 📦 Registry

- add viteplus (npm:vite-plus) by @risu729 in
[#8594](#8594)
- remove backend.options for podman by @roele in
[#8633](#8633)
- add pi.dev coding agent by @dector in
[#8635](#8635)
- add ormolu ([github:tweag/ormolu](https://github.com/tweag/ormolu)) by
@3w36zj6 in [#8617](#8617)
- use version_expr for dart and sort versions by @roele in
[#8631](#8631)

### New Contributors

- @bentinata made their first contribution in
[#8626](#8626)
- @tdragon made their first contribution in
[#8628](#8628)
- @nygmaaa made their first contribution in
[#8642](#8642)
- @youta1119 made their first contribution in
[#8646](#8646)
- @chancez made their first contribution in
[#8589](#8589)
- @dector made their first contribution in
[#8635](#8635)
- @tak848 made their first contribution in
[#8649](#8649)

## 📦 Aqua Registry Updates

#### New Packages (5)

- [`acsandmann/rift`](https://github.com/acsandmann/rift)
-
[`alltuner/mise-completions-sync`](https://github.com/alltuner/mise-completions-sync)
- [`berbicanes/apiark`](https://github.com/berbicanes/apiark)
-
[`gitlab.com/graphviz/graphviz`](https://github.com/gitlab.com/graphviz/graphviz)
-
[`jorgelbg/pinentry-touchid`](https://github.com/jorgelbg/pinentry-touchid)

#### Updated Packages (7)

- [`UpCloudLtd/upcloud-cli`](https://github.com/UpCloudLtd/upcloud-cli)
- [`aquaproj/registry-tool`](https://github.com/aquaproj/registry-tool)
- [`go-swagger/go-swagger`](https://github.com/go-swagger/go-swagger)
-
[`gopinath-langote/1build`](https://github.com/gopinath-langote/1build)
- [`sassman/t-rec-rs`](https://github.com/sassman/t-rec-rs)
- [`sharkdp/fd`](https://github.com/sharkdp/fd)
- [`temporalio/cli`](https://github.com/temporalio/cli)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants