Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, Nix 安装 ormolu

查看 ormolu 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ormolu

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add ormolu

Alpine Linux edge package indexes · ormolu · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install ormolu

Debian stable package indexes · ormolu · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install ormolu

Fedora Rawhide package metadata · ormolu · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#ormolu

nixpkgs package indexes · ormolu · 来源: raw.githubusercontent.com

概览

软件包摘要

Formatter for Haskell source code

命令和别名

  • ormolu

历史

项目历史与用法

Ormolu is a formatter for Haskell source code, developed by Tweag and distributed through Hackage, Stackage, GitHub releases, package managers, and editor integrations. Its defining design choice is a single formatting style with no user style configuration, built on GHC's parser to avoid the parsing gaps that affected older Haskell formatters.

项目历史

The tweag/ormolu repository was created on 2018-11-25. Tweag announced Ormolu publicly in May 2019, describing a formatter that would use GHC's own parser, aim for minimal diffs, be robust on large projects, and avoid configurable formatting styles.

Tweag announced the first Ormolu release on 2019-10-11. That post said the tool had been run on large real-world projects, legacy codebases, and popular packages, and that the first release formatted Haskell constructs, handled language extensions, placed comments, normalized pragmas and imports, and ran fast enough for large codebases.

The DESIGN.md file records the early analysis of Brittany, Hindent, Stylish Haskell, and haskell-formatter. The design borrowed goals such as preserving meaning when CPP is not used, preserving comments, idempotence, and linear space and time behavior, while avoiding parser bugs from haskell-src-exts.

采用历史

Ormolu became one of the standard Haskell formatter choices because it paired opinionated formatting with ecosystem integration. The README documents Hackage and Stackage availability, release binaries for Linux, macOS, and Windows, Nix builds, editor integrations for Emacs, VS Code, and Vim, built-in Haskell Language Server support, and a recommended GitHub Action.

Tweag's 2021 internship writing says the use of the GHC parser and testing gave Ormolu a reputation as a dependable tool, with more industrial users choosing it as their Haskell formatter. Later work focused on GHC parser upgrades, Ormolu Live, Cabal-file awareness, CPP handling, and magic comments for disabling formatting regions.

使用方式

Developers run ormolu on files to print formatted output, use --mode inplace to rewrite files, and use --mode check in CI to fail when code is not formatted. Recursive use is usually via find or git ls-files, while editor and HLS integrations make it part of save-time formatting.

Ormolu reads Cabal files and .ormolu files for technical formatting inputs such as default extensions, package dependencies, fixities, and re-exports, while keeping the main visual style non-configurable. Magic comments let users disable and re-enable formatting for regions that require manual layout.

为什么软件包爱好者会关心

Ormolu is package-nerd-significant because it captures a language-community shift toward formatter standardization: the package is small, but its value comes from reducing code-review churn, CI disagreement, and style bikeshedding in Haskell projects.

Its distribution footprint is unusually broad for a language formatter: Hackage library and executable, Stackage inclusion, binary releases, Nix support, Homebrew/Linux packages, Haskell Language Server integration, editor plugins, and GitHub Actions.

时间线

  • 2018-11-25: tweag/ormolu repository created on GitHub.
  • 2019-05-27: Tweag announced Ormolu before ZuriHac 2019.
  • 2019-10-11: Tweag announced the first Ormolu release.
  • 2021-04: Tweag described follow-up work around parser upgrades, bugs, and industrial use.
  • 2021-10: Tweag described internship work on Ormolu Live, Cabal-file support, CPP handling, and magic comments.

Related projects

  • Related Haskell formatting tools include Brittany, Hindent, Stylish Haskell, haskell-formatter, and Fourmolu. Related infrastructure includes GHC, ghc-lib-parser, Hackage, Stackage, Haskell Language Server, ormolu-action, and Ormolu Live.

安全态势

尚未找到受保护工具覆盖

没有找到 ormolu 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ormolucli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.8.1.1
管理器更新时间2026-07-22
本地数据OK
上游not checked
检测到的最新版本未检测到

https://ormolu-live.tweag.io

安装元数据

软件包元数据

软件包键brew:ormolu
版本0.8.1.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ormolu
主页https://ormolu-live.tweag.io
仓库https://github.com/tweag/ormolu
上游文档https://github.com/tweag/ormolu#readme
许可证BSD-3-Clause
源码归档https://hackage.haskell.org/package/ormolu-0.8.1.1/ormolu-0.8.1.1.tar.gz
最后更新2026-07-22T13:04:35Z
Pulseupdated
依赖gmp
构建依赖cabal-install, ghc
macOS 提供的库libffi
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameormolu
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

ormolu 0.7.2.0-1+b1

formatter for Haskell source code

https://github.com/tweag/ormolu

sudo apt install ormolu
  • Section: devel
  • Architecture: amd64
  • Source Package: haskell-ormolu
  • 4 依赖
  • normalized package name match
  • 匹配方式:Ormolu
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ormolu from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

ormolu

nix profile install nixpkgs#ormolu
  • normalized package name match
  • 匹配方式:Ormolu
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: ormolu from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

ormolu 0.5.3.0-1

formatter for Haskell source code

https://github.com/tweag/ormolu

sudo apt install ormolu
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: haskell-ormolu
  • 3 依赖
  • normalized package name match
  • 匹配方式:Ormolu
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ormolu from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

ormolu 0.8.0.2-r0

Formatter for Haskell source code

https://github.com/tweag/ormolu

sudo apk add ormolu
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: ormolu
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ormolu
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ormolu from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ormolu-doc 0.8.0.2-r0

Formatter for Haskell source code (documentation)

https://github.com/tweag/ormolu

sudo apk add ormolu-doc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: ormolu
  • normalized package name match
  • 匹配方式:Ormolu
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ormolu-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

ormolu 0.7.7.0-12.fc45

A formatter for Haskell source code

https://hackage.haskell.org/package/ormolu

sudo dnf install ormolu
  • License: BSD-3-Clause AND MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ormolu
  • 6 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ormolu
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ormolu from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment