avh4 / haskell-with-nix

opinionated project template for Haskell applications with Nix and Shake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An opinionated project template for Haskell applications with a Nix dev environment.

Encouraged processes:

Encouraged tech stack:

Getting started

nix-shell -p cookiecutter --run "cookiecutter https://github.com/avh4/haskell-with-nix.git"
# cd into the new folder
direnv allow
dev/build.sh cabal.project.freeze
git init
git add .
git commit -m "Initialize from template"

dev/run.sh  # Run the app
dev/build.sh  # Compile the app and run tests
dev/build.sh watch  # Re-run tests on changes
dev/build.sh watch:warnings  # Re-run compiler for warnings on changes
dev/build.sh autofix  # Fix formatting and linting errors
dev/build.sh --help  # Print all available build script targets

About

opinionated project template for Haskell applications with Nix and Shake


Languages

Language:Nix 49.8%Language:Haskell 44.9%Language:Python 4.2%Language:Shell 1.1%