alephcloud / hs-configuration-tools

Tools for defining and parsing configurations of Haskell applications
MIT License
23 stars 4 forks source link

Make stack template project template #53

Open axman6 opened 8 years ago

axman6 commented 8 years ago

I had a fair bit of trouble getting things working under stack and it'd be great to have a template which made a new project with an example config data type, all the right dependencies, and the proper .cabal and Setup.hs files. Templates can be made available to stack by making a pull request on commercialhaskell/stack-templates.

larskuhtz commented 8 years ago

I wasn't aware of stack templates. I'll take a look. If you have experience with stack templates feel free to propose somethings.

Thanks for your feedback, it is most welcome! Let me know if there are particular things that should be improved or better documented. Pull requests are welcome, too.

axman6 commented 8 years ago

Thanks Lars, The one thing missing from the documentation about how to use the Setup.hs file is to rename the module to Main instead of Configuration.Utils.Setup when copying the whole file (necessary for usage with Stack, hence this proposal).