28

I notice that Stack supports using a package.yaml file that it will use to generate a .cabal file. For example, yi-core/package.yaml. Its structure seems very similar to a Cabal file, but not quite the same. Some of the keys have been renamed (for example, Stack uses source-dirs instead of hs-source-dirs).

I haven't found any documentation on this feature. The Stack docs don't seem to mention package.yaml at all. Does a specification exist?

Chris Martin
  • 30,334
  • 10
  • 78
  • 137

1 Answers1

26

This is hpack, available here: https://github.com/sol/hpack

It's a slightly different package format, and, as you say, can be used to generate cabal files. It isn't directly tied to stack.

kosmikus
  • 19,549
  • 3
  • 51
  • 66
  • 3
    Thanks. I submitted an [issue](https://github.com/commercialhaskell/stack/issues/2750) to Stack to mention this in the docs. – Chris Martin Oct 30 '16 at 18:27