Skip to content
Back to skills

Nix Haskell

ASecurity

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

  • 959 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 12, 2026
documentationgoshellgit

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add srid/emanote --skill nix-haskell --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nix Haskell?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nix Haskell
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/srid-nix-haskell/badge)](https://www.skillsdirectory.com/skills/srid-nix-haskell)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nix-haskell
description: Use this when working on a Haskell project with Nix. Covers haskell-flake setup, adding/overriding dependencies, package settings, and devShell configuration.
---

# Haskell + Nix with haskell-flake

Use [haskell-flake](https://github.com/srid/haskell-flake) — a flake-parts module. Start from [haskell-template](https://github.com/srid/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](https://nixos-unified.org) 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

- haskell-flake guide: https://community.flake.parts/haskell-flake
- haskell-flake options: https://flake.parts/options/haskell-flake
- haskell-template: https://github.com/srid/haskell-template

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.