Starting new Haskell is a hassle. You have to:
- Create a new project directory
- Populate it with source and build infrastructure files
- Create a git repository
- Commit the boilerplate you just created
- Install dependencies (e.g. run »stack build«)
- Create a new github repository
- Link the github repository
This package automates these steps.
Configuration
User configuration files are expected in either of
~/.make-package.conf~/.make-package/make-package.conf$XDG_CONFIG_HOME/make-package/make-package.conf.(where$XDG_CONFIG_HOMEdefaults to~/.configif unset)
Templates
Template can come from 4 source:
- Git templates:
git:<git repository>(accepts any url git accepts) - Templates on github:
github:<username>/<repo>(Must be publicly visible) - Directories:
file:<path to directory>
Named templates in the template directory :
- Named templates are expected in
$XDG_DATA_HOME/make-package/templates(where$XDG_DATA_HOMEdefaults to~/.local/shareif unset). - The directory will be copied, files ending in
.mustacheare treated as mustache templates
The following variables are set for template expansion:
name: Name of the packagedesc: Description of the packageemail: Author's email addressauthor: Author's full nameyear: Current yearlicense: Name of the selected licensestack-resolver: Configured stack resolvercategory: Chosen category (if set)
Licenses
License files can be stored in $XDG_DATA_HOME/macke-package/licenses. If this directory does not exist, the licenses provided