nix-haskell-tools
БесплатноБез исполняемых скриптовНе проверенRun Haskell compiler, Cabal, test, doctest, formatter, and other Haskell toolchain commands in NeoHaskell or a generated consumer project.
от neohaskell★ 349 звёзд на GitHubОб этом скилле
Nix Haskell tools
Run Haskell toolchain commands through the development shell for the project under test. Use nix develop --command <tool> <args> from that project's root. Do not invoke ghc, ghci, runghc, cabal, doctest, fourmolu, hlint, or similar tools directly from the host shell.
Run a repository-owned helper that calls Haskell tools through nix develop --command <path-to-helper> <args> too. A helper's host-tool fallback does not authorize running it outside Nix. Run the generated-project contract from the host as documented in NeoHaskell consumer verification. That script invokes Nix itself.
Examples from the NeoHaskell repository root:
nix develop --command ghc --version
nix develop --command cabal test
For a generated app, change to the generated app's root before running the command. Its generated Cabal and Nix files must exist first. If a task needs another flake, pass that flake to nix develop while keeping the tool after --command.
If the development shell fails before the tool starts, report the Nix failure as an environment or project-shell failure. Do not retry the Haskell tool outside Nix.
Keep a component REPL open while editing
From the repository root, start the component that owns the code or Hspec example. The development project uses optimization level 0. These commands keep one GHCi process open across source edits:
nix develop --command cabal repl nhcore-test-core --project-file=cabal.project.dev -v0
nix develop --command cabal repl nhcore-test-service --project-file=cabal.project.dev -v0
nix develop --command cabal repl nhintegrations-test --project-file=cabal.project.dev -v0
nix develop --command cabal repl nhtestbed:nhtestbed-spec-demo --project-file=cabal.project.dev -v0
In the test component's GHCi prompt, run a focused Hspec example, edit a loaded module, then reload and rerun it:
:main --match "the example name"
:reload
:main --match "the example name"
:quit
For a one-shot check, run nix develop --command .agents/skills/tdd/scripts/test-match "the example name" nhcore-test-core. That helper starts a new component REPL on each invocation. A persistent REPL avoids that startup on repeated edits; it does not require a separate cabal build between reloads.
If you add a module, change a Cabal stanza, dependency, project file, Template Haskell marker, or generated source, quit and restart the component REPL with its current configuration. :reload checks the modules loaded by the current session. It does not replace compiler rejection fixtures or generated consumer checks for Template Haskell and code generation.
Before delivery, run the affected integration and PostgreSQL checks through NeoHaskell tests. Run generated consumer verification when framework exports, Template Haskell markers, or generated APIs change. Every PR still needs the generated-project contract and full required CI gate; a focused REPL result does not cover them.
Choose the verification environment
Use the host's Nix development shell and a component GHCi session for focused development and tests. Run the affected maintained suites on the host. When a suite needs PostgreSQL, use a reachable local service. An isolated Docker container may provide PostgreSQL if port 5432 is free. Record the container you create and stop only that container after the run. See NeoHaskell tests for the strict testbed command.
Run the exact-revision generated-project contract and required agent guide check on a capable host or Linux Actions runner. Keep the full result as an acceptance gate. If a local machine lacks capacity, report the incomplete local run and obtain the required result on Linux Actions at the PR head. Do not replace it with a focused REPL run, script self-test, or waived gate.
Docker is only an optional PostgreSQL provider in this workflow. Do not run a generated-consumer build or test inside a local Docker container. A build killed by a 4 GiB container memory limit is an infrastructure result, not a product failure or a passing gate. Record the limit and termination, then rerun the required check on a capable host or Linux Actions. Do not stop or prune another owner's containers, images, or volumes.
Установить nix-haskell-tools в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл nix-haskell-tools?
Run Haskell compiler, Cabal, test, doctest, formatter, and other Haskell toolchain commands in NeoHaskell or a generated consumer project.
Как установить скилл nix-haskell-tools?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nix-haskell-tools запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic