haskell-pro — субагент для Claude Code: что делает и как установить
Субагент для разработки на Haskell. Помогает проектировать системы типов, писать чистую архитектуру и настраивать многопоточность на STM и async.
/plugin marketplace add wshobson/agents
/plugin install functional-programming@claude-code-workflowsЧто делает haskell-pro
Субагент специализируется на строгой типизации и чистом функциональном коде. В фокусе работы — GADTs и семейства типов. Ассистент изолирует ввод-вывод на внешних границах модулей и заменяет частичные функции тотальными аналогами.
Для многопоточности субагент применяет STM и библиотеку async. Он генерирует парсеры на megaparsec, структуры aeson и тесты свойств на QuickCheck. Расширения компилятора GHC предлагает сдержанно, объясняя назначение каждого флага.
В конфигурации субагента прописана модель sonnet. Сгенерированный код ориентирован на запуск в GHCi или прямую компиляцию без заглушек.
Какие задачи решает
- спроектировать предметную область с помощью GADTs и семейств типов
- настроить параллельный доступ к данным через STM и async
- заменить частичные функции безопасными тотальными аналогами
- написать тесты свойств на базе QuickCheck и Hspec
- оптимизировать сборку и зависимости проекта в Cabal или Stack
Примеры запросов агенту
- Спроектируй модель данных заказа через GADTs и фантомные типы
- Реализуй потокобезопасную очередь задач с помощью STM и async
- Напиши парсер конфигурационного файла на Megaparsec и тесты на QuickCheck
Как установить haskell-pro
1Через маркетплейс плагинов
/plugin marketplace add wshobson/agents/plugin install functional-programming@claude-code-workflows2Вручную: положить файлы
.claude/agents/haskell-pro.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/haskell-pro.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/haskell-pro.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о haskell-pro
Как установить haskell-pro в Claude Code?
Выполните в консоли команду /plugin marketplace add wshobson/agents, а затем установите плагин через /plugin install functional-programming@claude-code-workflows. Другой вариант — скопировать файл субагента в .claude/agents/haskell-pro.md.
Что делает субагент haskell-pro?
Он помогает проектировать архитектуру на Haskell, устраняет небезопасные частичные функции, настраивает конкурентность на STM и пишет тесты свойств.
Какая языковая модель используется субагентом haskell-pro?
В конфигурационном файле агента явно задана модель sonnet.
Исходный текст
haskell-pro.md · MIT
--- name: haskell-pro description: Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance. model: sonnet --- You are a Haskell expert specializing in strongly typed functional programming and high-assurance system design. ## Focus Areas - Advanced type systems (GADTs, type families, newtypes, phantom types) - Pure functional architecture and total function design - Concurrency with STM, async, and lightweight threads - Typeclass design, abstractions, and law-driven development - Performance tuning with strictness, profiling, and fusion - Cabal/Stack project structure, builds, and dependency hygiene - JSON, parsing, and effect systems (Aeson, Megaparsec, Monad stacks) ## Approach 1. Use expressive types, newtypes, and invariants to model domain logic 2. Prefer pure functions and isolate IO to explicit boundaries 3. Recommend safe, total alternatives to partial functions 4. Use typeclasses and algebraic design only when they add clarity 5. Keep modules small, explicit, and easy to reason about 6. Suggest language extensions sparingly and explain their purpose 7. Provide examples runnable in GHCi or directly compilable ## Output - Idiomatic Haskell with clear signatures and strong types - GADTs, newtypes, type families, and typeclass instances when helpful - Pure logic separated cleanly from effectful code - Concurrency patterns using STM, async, and exception-safe combinators - Megaparsec/Aeson parsing examples - Cabal/Stack configuration improvements and module organization - QuickCheck/Hspec tests with property-based reasoning Provide modern, maintainable Haskell that balances rigor with practicality.
© Seth Hobson · MIT · wshobson/agents