No description
Find a file
Sridhar Ratnakumar 385039139c nix: Update inputs
• Updated input 'haskell-flake':
    'github:srid/haskell-flake/c6ff897db9abdd4e5ff7911b5f9234a1380c6611' (2023-01-18)
  → 'github:srid/haskell-flake/8688fb2deaa193795467eedb4d2473dbeaba19b4' (2023-01-23)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/676c80dcc2f0ba780c8ab204f92c5abd69fa1245' (2023-01-19)
  → 'github:nixos/nixpkgs/ef479383e13698c8d5ccf8a608485dc8ce1d4f80' (2023-01-22)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/6717065d6a432bc3f5b827007ad959e6032d5856' (2023-01-05)
  → 'github:numtide/treefmt-nix/d5ed9a1e6793f99b2e179d5dec9639e48ef22db7' (2023-01-23)
2023-01-24 13:04:39 -05:00
.github/workflows Update ci.yaml 2022-12-24 06:55:44 -05:00
.vscode Nixify scripts using mission-control (#72) 2022-12-17 12:29:11 -05:00
src Nixify scripts using mission-control (#72) 2022-12-17 12:29:11 -05:00
.envrc
.gitattributes
.gitignore Simplify .gitignore 2022-09-03 10:33:32 -04:00
.hlint.yaml hlint: add a custom rule as illustration 2022-09-03 10:27:38 -04:00
flake.lock nix: Update inputs 2023-01-24 13:04:39 -05:00
flake.nix Advance nixpkgs, for GHC 9.2 (#79) 2023-01-24 13:02:42 -05:00
fourmolu.yaml
haskell-template.cabal Update flake.lock & reintroduce garnix CI (#66) 2022-10-30 19:22:49 -04:00
hie.yaml
LICENSE Change year 2022-10-10 21:56:38 -04:00
README.md Advance nixpkgs, for GHC 9.2 (#79) 2023-01-24 13:02:42 -05:00
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:

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 (or nix run . from checkout)
  • Common workflows

Discussions

Questions? Ideas? Suggestions? You may post them here: https://github.com/srid/haskell-template/discussions