concept hpack in category haskell

This is an excerpt from Manning's book Haskell in Depth.
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-modulesproperty 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. Thehpackutility which comes from thehpackCabal 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 thepackage.yamlfile and allows generating cabal-file by runninghpack. Usingpackage.yamlfile format is based on three design principles: