stack new: What is the purpose of "category" and "copyright" params for templates.

489 views
Skip to first unread message

Simeon Filipov

unread,
Oct 18, 2015, 3:12:11 PM10/18/15
to haskell-stack
Recently I noticed that when I'm creating a project using "stack new", I am asked to provide 5 parameters for the template. These can either be passed to the stack new command using -p/--params or by putting them in $HOME/.stack/config.yaml. The purpose of 3 of these is obvious:
  • author-email
  • author-name
  • github-username
The other two I am not sure about: 
  • category
  • copyright
 What part of the project generation do they affect?

Lastly, there is no mention of these in https://github.com/commercialhaskell/stack/blob/master/doc/yaml_configuration.md. Where is the right place to document these?

Simeon Filipov

unread,
Oct 18, 2015, 6:31:05 PM10/18/15
to haskell-stack
I found the answer myself - both of these go inside the cabal file. More information about them can be found here: https://www.haskell.org/cabal/users-guide/developing-packages.html#package-properties

Should these be mentioned somewhere in stack's documentation for people not familiar with cabal?
Reply all
Reply to author
Forward
0 new messages