stack-templatizer is an application that generates a .hsfiles stack
template from a folder of template files.
You can install the application using stack install
stack-templatizer --resolver nightly or by cloning the repository and
running stack install.
Then run stack-templatizer my-folder to turn all the files in my-folder
into a my-folder.hsfiles stack template.
You can see an example folder & the generated hs-files in the
hpack template repository.