concept hpack in category haskell

appears as: hpack
Haskell in Depth

This is an excerpt from Manning's book Haskell in Depth.

Generating cabal-files with hpack

Writing cabal-files can be rather tedious as it involves specifying too many details that can be defaulted or inferred automatically. One example is the other-modules property where we should list every module of our library which is not exposed to its user or literally every module of our application except for main module. The hpack utility which comes from the hpack Cabal package designed and implemented by Simon Hengel, is an alternative to this boring cabal-file writing. This utility defines its own package description format which is expected to reside in the package.yaml file and allows generating cabal-file by running hpack. Using package.yaml file format is based on three design principles: