hpack
brew install hpack
v0.39.6
MIT
Modern format for Haskell packages
22
30-day installs · #6581
91
90-day · #5821
355
365-day · #5926
665
★ GitHub stars · updated 2mo ago
Runtime dependencies
Build dependencies
Links
- https://github.com/sol/hpack
- GitHub: sol/hpack
- Brew formula source: Formula/h/hpack.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"cabal-install",
"ghc"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"gmp"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Modern format for Haskell packages",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:38:40+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "hpack",
"github_default_branch": "main",
"github_last_commit_at": "2026-06-08T09:08:46Z",
"github_readme_excerpt": "[](http://hackage.haskell.org/package/hpack)\n[](https://www.stackage.org/package/hpack)\n[](https://stackage.org/nightly/package/hpack)\n\n# hpack: A modern format for Haskell packages\n\nHpack is a format for Haskell packages. It is a modern alternative to the\nCabal package format and follows different design principles.\n\n\n## Design principles\nThe guiding design principles for Hpack are:\n\n* Don\u0027t require the user to state the obvious, make sensible assumptions by\n default\n* Give the user 100% control when needed\n* Don\u0027t require the user to repeat things, facilitate [DRY](https://en.wikipedia.org/wiki/Don\u0027t_repeat_yourself)ness\n\n## Tool integration\n\nHpack packages are described in a file named `package.yaml`. Both\n[`cabal2nix`](https://hackage.haskell.org/package/cabal2nix) and\n[`stack`](https://haskellstack.org/) support `package.yaml` natively. For\nother build tools the `hpack` executable can be used to generate a `.cabal`\nfile from `package.yaml`.\n\n## There is no user guide\n\nThere is reference documentation below, but introductory documentation is still\nlacking. For the time being, take a look at the slides from my talk about Hpack\nat the Singapore Haskell meetup: http://typeful.net/talks/hpack\n\n## Examples\n\n * Given this [package.yaml](https://github.com/sol/hpack/blob/main/package.yaml) running `hpack` will generate [hpack.cabal](https://github.com/sol/hpack/blob/main/hpack.cabal)\n * Given this [package.yaml](https://github.com/zalora/getopt-generics/blob/master/package.yaml) running `hpack` will generate [getopt-generics.cabal](https://github.com/zalora/getopt-generics/blob/master/getopt-generics.cabal)\n * Given this [package.yaml](https://github.com/hspec/sensei/blob/main/package.yaml) running `hpack` w",
"github_repo": "sol/hpack",
"github_stars": 665,
"github_topics": [],
"homepage": "https://github.com/sol/hpack",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 22,
"installs_365d": 355,
"installs_90d": 91,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "hpack",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 6581,
"rank_365d": 5926,
"rank_90d": 5821,
"raw_hash": "b93fb3a1159fd363",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/h/hpack.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [
"libffi"
],
"version_head": "HEAD",
"version_stable": "0.39.6",
"versioned_formulae": [],
"why_use_this": null
}