macOS
brew install hlintlocal Homebrew formula metadata
sudo port install hlintMacPorts ports tree · devel/hlint/Portfile · ソース: api.github.com
brew
hlint のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install hlintlocal Homebrew formula metadata
sudo port install hlintMacPorts ports tree · devel/hlint/Portfile · ソース: api.github.com
sudo apk add hlintAlpine Linux edge package indexes · hlint · ソース: dl-cdn.alpinelinux.org
sudo apt install hlintDebian stable package indexes · hlint · ソース: deb.debian.org
sudo dnf install hlintFedora Rawhide package metadata · hlint · ソース: dl.fedoraproject.org
nix profile install nixpkgs#hlintnixpkgs package indexes · hlint · ソース: raw.githubusercontent.com
sudo pacman -S hlintArch Linux sync databases · hlint · ソース: geo.mirror.pkgbuild.com
sudo zypper install hlintopenSUSE Tumbleweed package metadata · hlint · ソース: download.opensuse.org
概要
Haskell source code suggestions
履歴
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.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
local files
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.
Config paths the tool may read or write during local use.
.hlint.yaml実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
hlint | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
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 |
| Pulse | updated |
| 依存関係 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | hlint |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
hlint 3.6.1-1+b1
Haskell source code suggestions
https://github.com/ndmitchell/hlint#readme
sudo apt install hlintlibghc-hlint-dev 3.6.1-1+b1
Haskell source code suggestions
https://github.com/ndmitchell/hlint#readme
sudo apt install libghc-hlint-devlibghc-hlint-doc 3.6.1-1
Haskell source code suggestions; documentation
https://github.com/ndmitchell/hlint#readme
sudo apt install libghc-hlint-doclibghc-hlint-prof 3.6.1-1+b1
Haskell source code suggestions; profiling libraries
https://github.com/ndmitchell/hlint#readme
sudo apt install libghc-hlint-profhlint
nix profile install nixpkgs#hlinthlint 3.5-1build1
Haskell source code suggestions
https://github.com/ndmitchell/hlint#readme
sudo apt install hlintlibghc-hlint-dev 3.5-1build1
Haskell source code suggestions
https://github.com/ndmitchell/hlint#readme
sudo apt install libghc-hlint-devlibghc-hlint-doc 3.5-1build1
Haskell source code suggestions; documentation
https://github.com/ndmitchell/hlint#readme
sudo apt install libghc-hlint-doclibghc-hlint-prof 3.5-1build1
Haskell source code suggestions; profiling libraries
https://github.com/ndmitchell/hlint#readme
sudo apt install libghc-hlint-profhlint 3.10-r0
Linter for Haskell source code
https://github.com/ndmitchell/hlint
sudo apk add hlintghc-deriving-aeson 0.2.10-12.fc44
Haskell deriving-aeson library
https://hackage.haskell.org/package/deriving-aeson
sudo dnf install ghc-deriving-aesonghc-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-develghc-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-docghc-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-profghc-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-exghc-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ソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.