1. 5
  1.  

  2. 3

    There’s also hpack which generates fields required by Cabal. A minimal package.yml file for hpack looks something like:

    name: example
    library:
      source-dirs: src
    

    It’s also integrated into Stack.