No description
54389ba645
Flake lock file updates: • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/82c16f1682cf50c01cb0280b38a1eed202b3fe9f' (2023-01-10) → 'github:hercules-ci/flake-parts/47478a4a003e745402acf63be7f9a092d51b83d7' (2023-02-09) • Updated input 'flake-parts/nixpkgs-lib': 'github:NixOS/nixpkgs/677ed08a50931e38382dbef01cba08a8f7eac8f6?dir=lib' (2022-12-29) → 'github:NixOS/nixpkgs/e1e1b192c1a5aab2960bf0a0bd53a2e8124fa18e?dir=lib' (2023-01-31) • Updated input 'mission-control': 'github:Platonic-Systems/mission-control/9acdaa469ebd3c2d6816f8a30c0c217a0da59fe2' (2022-12-19) → 'github:Platonic-Systems/mission-control/feb06872ac4dc977f70f6388c87d36fc3c3c3693' (2023-01-31) • Removed input 'mission-control/nixpkgs' • Updated input 'nixpkgs': 'github:nixos/nixpkgs/d840126a0890621e7b220894d749132dd4bde6a0' (2023-02-05) → 'github:nixos/nixpkgs/6ccc4a59c3f1b56d039d93da52696633e641bc71' (2023-02-09) • Updated input 'treefmt-nix': 'github:numtide/treefmt-nix/d5ed9a1e6793f99b2e179d5dec9639e48ef22db7' (2023-01-23) → 'github:numtide/treefmt-nix/819dd7f076832838bba238eceef9a3dbfc63f5d0' (2023-02-11) • Added input 'treefmt-nix/nixpkgs': 'github:nixos/nixpkgs/0591d6b57bfeb55dfeec99a671843337bc2c3323' (2023-02-04) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> |
||
---|---|---|
.github/workflows | ||
.vscode | ||
src | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
.hlint.yaml | ||
flake.lock | ||
flake.nix | ||
fourmolu.yaml | ||
haskell-template.cabal | ||
hie.yaml | ||
LICENSE | ||
README.md | ||
shell.nix |
haskell-template
Get a Haskell development environment up and running quickly. Thanks to Nix, this template is optimized for a fully reproducible and friendly development environment. It is based on:
- Nix + Flakes (via
github:srid/haskell-flake
) + GHC 9.2 - VSCode + HLS
- fourmolu autoformatting
- Relude as Prelude.
.hlint.yaml
is from relude
- Devshell scripts (
,
prefixed) are provided via mission-control
If you have an existing Haskell project, you should probably use https://github.com/srid/haskell-flake instead.
Getting Started
tldr: Install Nix, enable Flakes, open in VSCode and run , run
.
For details, see: https://srid.ca/haskell-template/start
Tips
- Run
nix flake update
to update all flake inputs. - Run
nix build .#check -L
to run the flake checks. - Run
, fmt
in nix shell to autoformat the project. This uses treefmt. - Run
, docs
to start Hoogle with packages in your cabal file. - Run the application without installing:
nix run github:srid/haskell-template
(ornix run .
from checkout) - Common workflows
- Adding library dependencies in Nix: https://srid.ca/haskell-template/dependency
- Adding tests: https://srid.ca/haskell-template/tests
Discussions
Questions? Ideas? Suggestions? You may post them here: https://github.com/srid/haskell-template/discussions