An alternative format for Haskell packages


Version on this page:0.18.1@rev:1
LTS Haskell 22.23:0.36.0@rev:1
Stackage Nightly 2024-05-28:0.36.0@rev:1
Latest on Hackage:0.36.0@rev:1

See all snapshots hpack appears in

MIT licensed
Maintained by Simon Hengel
This version can be pinned in stack with:hpack-0.18.1@sha256:5d0709cd873b86b1f3f34b648cb34ec88094000b3e5ca640868d94ac8aea70a4,2574

Module documentation for 0.18.1



  • Output generated cabal file to stdout when - is given as a command-line option (see #113)
  • Recognize .chs, .y, .ly and .x as Haskell modules when inferring modules for

Change in 0.18.0

  • Make executable a shortcut of executables: { package-name: ... }
  • Add support for ghcjs-options and js-sources (see #161)
  • Allow license-file to be a list
  • Accept input file on command-line (see #106)
  • Add Paths_* when no modules are specified (see #86)

Changes in 0.17.1

  • Do not descend into irrelevant directories when inferring modules (see #165)

Changes in 0.17.0

  • Added custom-setup section
  • Add support for !include directives

Changes in 0.16.0

  • Warn when name is missing
  • Support globs in c-sources
  • Use binary I/O for cabal files avoiding problems with non-UTF-8 locales
  • Fix rendering of . as directory (cabal syntax issue)