Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, pacman, apt 安装 hindent

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install hindent

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install hindent

MacPorts ports tree · textproc/hindent/Portfile · 来源: api.github.com

概览

软件包摘要

Haskell pretty printer

命令和别名

  • hindent

历史

项目历史与用法

hindent is a Haskell pretty-printer and source formatter distributed as both a Haskell package and a CLI executable. Its package-manager role is straightforward: it gives editors, hooks, and shell pipelines a stable `hindent` command for reformatting Haskell source.

项目历史

The repository history begins on 2014-08-24 with a first commit and rapid follow-up commits for printer structure, expression constructors, pattern support, declarations, where clauses, and a basic executable. The first visible tag, 1.0, followed on 2014-08-30, and the project iterated quickly through 2.x, 3.x, and 4.x tags in late 2014.

Hackage describes hindent as an extensible Haskell pretty printer, both a library and an executable, and points users to the GitHub repository for usage. Over time the package continued through 5.x and 6.x releases while tracking parser and language-extension needs in the Haskell ecosystem.

采用历史

hindent's adoption is tied to Haskell editor and build workflows. Its README documents use in pipeline style, Emacs `hindent-mode`, Vim `formatprg`, a Vim plugin, and JetBrains File Watchers. Hackage lists the package under development, library, and program tags, which reflects its dual role as code and executable.

The package appears in Homebrew, MacPorts, Arch, Ubuntu, Hackage, and Stackage contexts, making it familiar to developers who expect language formatters to be installable from their OS or language package manager.

使用方式

The basic usage model is `cat path/to/sourcefile.hs | hindent` or passing filenames to the CLI. Options cover line length, indent or tab size, import sorting, trailing newline behavior, validation, and GHC language extensions.

The README documents project- or home-level `.hindent.yaml` customization with indentation, line length, import sorting, line breaks, and extensions. Editor integrations use the same CLI, so the package works without a separate daemon or language-server dependency.

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

hindent matters to package nerds because it is a classic formatter package: tiny surface area, editor-friendly, pipeline-friendly, and available in multiple package systems. It represents the era when language communities standardized formatting through standalone executables before formatter support was expected inside every language server.

It is also a useful Haskell packaging specimen because it lives simultaneously on Hackage and GitHub, depends on parser libraries, and must follow language evolution as GHC syntax grows.

时间线

  • 2014-08-24: Repository history begins with the first commit.
  • 2014-08-30: 1.0 is tagged.
  • 2014-09: 2.x and 3.x releases are tagged during rapid early development.
  • 2014-11: 4.0 is tagged.
  • 2026-01-24: Hackage records upload of hindent 6.3.0.

Related projects

  • Hackage and Stackage are the package registry and curated package-set surfaces where many Haskell developers encounter hindent.
  • Editor integrations include the repository's Emacs mode, Vim `formatprg`, vim-hindent, and JetBrains File Watchers.
  • Related Haskell formatting tools include stylish-haskell, ormolu, fourmolu, and brittany, though hindent's official materials focus on its own formatter and editor integrations.

来源

  • Hackage package page for package description, versions, maintainer, upload, source repo, license, and distribution context.
  • Official Git repository tags and commits for early timeline.
  • Official README for usage, editor integration, and customization.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本6.3.0
管理器更新时间2026-07-22
本地数据OK
上游当前
检测到的最新版本v6.3.0

https://github.com/mihaimaruseac/hindent

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:hindent
版本6.3.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/hindent
主页https://github.com/mihaimaruseac/hindent
仓库https://github.com/mihaimaruseac/hindent
上游文档https://github.com/mihaimaruseac/hindent#readme
许可证BSD-3-Clause
源码归档https://github.com/mihaimaruseac/hindent/archive/refs/tags/v6.3.0.tar.gz
最后更新2026-07-22T14:05:15Z
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 Namehindent
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

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

Ubuntu apt95%

hindent 5.3.4-1build2

Extensible Haskell pretty printer

https://github.com/mihaimaruseac/hindent

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

hindent 6.1.1-38

Extensible Haskell pretty printer

https://github.com/mihaimaruseac/hindent

sudo pacman -S hindent
  • License: BSD-3-Clause
  • Architecture: x86_64
  • 12 依赖
  • normalized package name match
  • 匹配方式:Hindent
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: hindent from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

hindent

sudo port install hindent
  • normalized package name match
  • 匹配方式:Hindent
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/hindent/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 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