stack-templatizer: Generate a stack template from a folder.

[ bsd3, development, program ] [ Propose Tags ]

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.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,
Change log
Dependencies base (>=4.7 && <5), bytestring (<1), directory (>=1 && <2), filepath (>=1 && <2) [details]
License BSD-3-Clause
Copyright 2020 Pavan Rikhi
Author Pavan Rikhi
Category Web
Home page
Bug tracker
Source repo head: git clone
Uploaded by lysergia at 2020-02-12T17:28:45Z
Distributions LTSHaskell:, NixOS:, Stackage:
Executables stack-templatizer
Downloads 1029 total (17 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2020-02-13 [all 3 reports]

Readme for stack-templatizer-

[back to package description]


stack-templatizer Build Status

Stack Templatizer is a small application that lets you generate stack template hsfiles from a folder.

Install or clone & build the project using stack:

# Install from Stack Nightly
stack install stack-templatizer --nightly

# Or build and install from source
git clone
cd stack-templatizer
stack install

Once installed, you can run stack-templatizer my-template-folder to generate a my-template-folder.hsfiles stack template.

hpack template

Things I do after initing a simple-hpack template:

  • Add gitignore w/ cabal & stack-work
  • change exe to app/Main.hs
  • Add library section
  • set GHC options
  • lint stack.yaml & package.yaml
  • add LICENSE section to readme
  • add github section to package.yaml