Automic VaultAutomic Vault

brew

hlint を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper でインストール

hlint のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install hlint

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install hlint

MacPorts ports tree · devel/hlint/Portfile · ソース: api.github.com

Linux

Alpine Linux apk確認済み · 92%
sudo apk add hlint

Alpine Linux edge package indexes · hlint · ソース: dl-cdn.alpinelinux.org

Debian apt確認済み · 92%
sudo apt install hlint

Debian stable package indexes · hlint · ソース: deb.debian.org

Fedora dnf確認済み · 92%
sudo dnf install hlint

Fedora Rawhide package metadata · hlint · ソース: dl.fedoraproject.org

Nix確認済み · 92%
nix profile install nixpkgs#hlint

nixpkgs package indexes · hlint · ソース: raw.githubusercontent.com

Arch Linux pacman確認済み · 92%
sudo pacman -S hlint

Arch Linux sync databases · hlint · ソース: geo.mirror.pkgbuild.com

openSUSE zypper確認済み · 92%
sudo zypper install hlint

openSUSE Tumbleweed package metadata · hlint · ソース: download.opensuse.org

概要

パッケージ概要

Haskell source code suggestions

コマンドとエイリアス

  • hlint

履歴

プロジェクトの歴史と使われ方

HLint is Neil Mitchell's Haskell source-code suggestion tool. It parses Haskell modules and reports style, simplification, redundancy, and maintainability hints, with configuration through .hlint.yaml and integrations across editors, CI systems, and Haskell IDE tooling.

プロジェクトの歴史

The hlint.cabal file gives Neil Mitchell as author and maintainer and carries a copyright line beginning in 2006. Neil Mitchell's publication page ties HLint to a longer research and tooling thread around transformation and analysis of Haskell source code, including a 2007 thesis seminar and a 2008 PhD thesis on functional-program transformation and analysis.

HLint's README describes its core purpose as suggesting possible improvements such as alternative functions, code simplification, and spotting redundancies. It deliberately operates on modules in isolation rather than typechecking whole projects, a tradeoff that lets it parallelize, run incrementally, and analyze code that may not compile yet.

In 2017, HLint 2.0 moved configuration toward YAML. Neil Mitchell's release post says earlier configuration used specially crafted Haskell files, while HLint 2.0 added .hlint.yaml search from the working directory upward and encouraged YAML because the Haskell-based format had become overloaded.

By 2020, HLint had undergone a major parser migration. Mitchell's MuniHac talk abstract describes HLint as over 14 years old, notes changes in license, project name, source control, and configuration, and explains the move from haskell-src-exts toward the GHC API via ghc-lib as GHC compatibility became more important.

採用の歴史

HLint became a standard Haskell development utility because it can be run cheaply during local development, code review, and CI. The README documents installation through the ordinary Haskell toolchain, direct binary use in CI, and workflows that generate an initial report before committing a project-specific .hlint.yaml baseline.

The README also documents broad integration: editor plugins, Haskell Language Server, ghc-mod, Intero, GHC source plugins, Code Climate, Danger, Restyled, HLint test helpers, GitHub Actions, and code-scanning workflows. That integration footprint made HLint visible both to individual Haskell developers and to larger codebases enforcing house style.

使われ方

A normal run is hlint source, where source is a file or directory. HLint recursively scans .hs and .lhs files, reports file/line locations, severity, the code it found, and a possible replacement. For larger projects, hlint . --report creates an HTML report, and hlint . --default can create a .hlint.yaml file that records outstanding hints.

HLint suggestions are intentionally advisory. The README warns that most hints are good ideas in many circumstances but should not be applied blindly, especially when contributing to another project or when language extensions and laziness semantics matter.

パッケージ好きにとっての重要性

HLint is one of the canonical Haskell developer-tool packages: small enough to run locally, opinionated enough to teach idioms, and integrated enough to show up in editors, CI, code review bots, and language-server diagnostics.

For package maintainers, HLint matters because it externalizes style and simplification rules into a configurable tool. Projects can ship .hlint.yaml to encode local decisions, silence accepted warnings, and add custom hints without requiring every contributor to internalize the entire style guide.

Its long parser and configuration evolution also mirrors the Haskell ecosystem's own tooling history: from custom parsers and Haskell-flavored config toward YAML project files, ghc-lib, and tighter integration with the compiler and language-server stack.

タイムライン

  • 2006: HLint authorship/copyright line begins in hlint.cabal.
  • 2007: Neil Mitchell presented work on transformation and analysis of Haskell source code.
  • 2008: Neil Mitchell's PhD thesis on transformation and analysis of functional programs was published.
  • 2013: The ndmitchell/hlint GitHub repository was created.
  • 2017-04-06: HLint 2.0 introduced YAML configuration and .hlint.yaml search.
  • 2020-09-11: The MuniHac talk described HLint's migration to the GHC API parser via ghc-lib.

Related projects

  • GHC and ghc-lib: parser/compiler infrastructure used by HLint's later parser architecture.
  • haskell-src-exts: the parser library HLint used before the GHC API migration.
  • Haskell Language Server, ghc-mod, Intero: Haskell tooling integrations named by the README.
  • apply-refact: the refactoring helper used when HLint applies suggestions with --refactor.

セキュリティ状態

リスクレベル: グリーン

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 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
.hlint.yaml

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
hlintcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版3.10
マネージャ更新日2026-07-22
ローカルデータOK
上流not checked
検出された最新未検出

https://github.com/ndmitchell/hlint

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:hlint
バージョン3.10
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/hlint
ホームページhttps://github.com/ndmitchell/hlint
リポジトリhttps://github.com/ndmitchell/hlint
上流ドキュメントhttps://github.com/ndmitchell/hlint#readme
ライセンスBSD-3-Clause
ソースアーカイブhttps://hackage.haskell.org/package/hlint-3.10/hlint-3.10.tar.gz
最終更新2026-07-22T14:14:26Z
Pulseupdated
依存関係gmp
ビルド依存関係cabal-install, ghc@9.12
macOS 提供ライブラリlibffi, ncurses
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehlint
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%

hlint 3.6.1-1+b1

Haskell source code suggestions

https://github.com/ndmitchell/hlint#readme

sudo apt install hlint
  • Section: haskell
  • Architecture: amd64
  • Source Package: hlint
  • 5 依存関係
  • 1 任意依存関係
  • normalized package name match
  • 一致条件: Hlint
Debian stable package indexes · deb.debian.org · Debian stable package indexes: hlint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libghc-hlint-dev 3.6.1-1+b1

Haskell source code suggestions

https://github.com/ndmitchell/hlint#readme

sudo apt install libghc-hlint-dev
  • Section: haskell
  • Architecture: amd64
  • Source Package: hlint
  • 29 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Hlint
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libghc-hlint-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libghc-hlint-doc 3.6.1-1

Haskell source code suggestions; documentation

https://github.com/ndmitchell/hlint#readme

sudo apt install libghc-hlint-doc
  • Section: doc
  • Architecture: all
  • Source Package: hlint
  • 1 依存関係
  • 22 任意依存関係
  • normalized package name match
  • 一致条件: Hlint
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libghc-hlint-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libghc-hlint-prof 3.6.1-1+b1

Haskell source code suggestions; profiling libraries

https://github.com/ndmitchell/hlint#readme

sudo apt install libghc-hlint-prof
  • Section: haskell
  • Architecture: amd64
  • Source Package: hlint
  • 27 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Hlint
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libghc-hlint-prof from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

hlint

nix profile install nixpkgs#hlint
  • normalized package name match
  • 一致条件: Hlint
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: hlint from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

hlint 3.5-1build1

Haskell source code suggestions

https://github.com/ndmitchell/hlint#readme

sudo apt install hlint
  • Section: universe/haskell
  • Architecture: amd64
  • 4 依存関係
  • 1 任意依存関係
  • normalized package name match
  • 一致条件: Hlint
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: hlint from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libghc-hlint-dev 3.5-1build1

Haskell source code suggestions

https://github.com/ndmitchell/hlint#readme

sudo apt install libghc-hlint-dev
  • Section: universe/haskell
  • Architecture: amd64
  • Source Package: hlint
  • 29 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Hlint
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libghc-hlint-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libghc-hlint-doc 3.5-1build1

Haskell source code suggestions; documentation

https://github.com/ndmitchell/hlint#readme

sudo apt install libghc-hlint-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: hlint
  • 1 依存関係
  • 22 任意依存関係
  • normalized package name match
  • 一致条件: Hlint
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libghc-hlint-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libghc-hlint-prof 3.5-1build1

Haskell source code suggestions; profiling libraries

https://github.com/ndmitchell/hlint#readme

sudo apt install libghc-hlint-prof
  • Section: universe/haskell
  • Architecture: amd64
  • Source Package: hlint
  • 27 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Hlint
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libghc-hlint-prof from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

hlint 3.10-r0

Linter for Haskell source code

https://github.com/ndmitchell/hlint

sudo apk add hlint
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: hlint
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Hlint
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hlint from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

ghc-deriving-aeson 0.2.10-12.fc44

Haskell deriving-aeson library

https://hackage.haskell.org/package/deriving-aeson

sudo dnf install ghc-deriving-aeson
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hlint
  • 32 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Hlint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-deriving-aeson from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-deriving-aeson-devel 0.2.10-12.fc44

Haskell deriving-aeson library development files

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

sudo dnf install ghc-deriving-aeson-devel
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hlint
  • 3 依存関係
  • 3 提供
  • normalized package name match
  • 一致条件: Hlint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-deriving-aeson-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-deriving-aeson-doc 0.2.10-12.fc44

Haskell deriving-aeson library documentation

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

sudo dnf install ghc-deriving-aeson-doc
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: hlint
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Hlint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-deriving-aeson-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-deriving-aeson-prof 0.2.10-12.fc44

Haskell deriving-aeson profiling library

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

sudo dnf install ghc-deriving-aeson-prof
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hlint
  • 2 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Hlint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-deriving-aeson-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-ghc-lib-parser-ex 9.12.0.0-12.fc44

Haskell ghc-lib-parser-ex library

https://hackage.haskell.org/package/ghc-lib-parser-ex

sudo dnf install ghc-ghc-lib-parser-ex
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hlint
  • 32 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Hlint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-ghc-lib-parser-ex from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-ghc-lib-parser-ex-devel 9.12.0.0-12.fc44

Haskell ghc-lib-parser-ex library development files

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

sudo dnf install ghc-ghc-lib-parser-ex-devel
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hlint
  • 3 依存関係
  • 3 提供
  • normalized package name match
  • 一致条件: Hlint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-ghc-lib-parser-ex-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

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