Haskell + Nix with haskell-flake

SkillDocs & knowledge

Use this when working on a Haskell project with Nix. Covers haskell-flake setup, adding/overriding dependencies, package settings, and devShell configuration.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Haskell + Nix with haskell-flake skill

What this skill tells your AI

The instructions your AI receives, as published by srid/emanote in .agents/skills/nix-haskell/SKILL.md and read by ahel’s review.

Use haskell-flake — a flake-parts module. Start from haskell-template. Requires a .cabal or cabal.project file; haskell-flake scans for it automatically.

Starting a new project

You MUST use git clone https://github.com/srid/haskell-template <project-dir> to start a new project. Do NOT fetch individual files, do NOT use om init, do NOT write flake.nix from scratch. Clone the template, then rename the package in .cabal and nix/modules/flake/haskell.nix.

Project structure

Projects based on haskell-template use nixos-unified autowiring. Do NOT write Nix configuration inline in flake.nix. The flake.nix delegates entirely to nixos-unified, and all Nix configuration goes in ./nix/modules/flake/*.nix files.

Docs

Signals

GitHub stars
959
Forks
79
Last commit
Jul 2026
Advanced
Catalog kind
skill
Gateway key
nix-haskell
Source
github.com/srid/emanote