Skip to content
Skillpedia
General coding33k · #8770

haskell-pro

What it does

This skill gives your AI agent expert guidance for writing Haskell programs. It is for developers who want strongly typed, functional code that is safe and easy to reason about.

When to use it

  • ✓When you write or review Haskell code.
  • ✓When you need to model a domain with advanced types.
  • ✓When you need help with Haskell concurrency, performance or project setup.

Skill link

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/haskell-pro/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/haskell-pro/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Write a Haskell module that parses a config file and models errors with strong types.”

5 new skills a week. 1 minute to read.

How it works

The agent uses expressive types and pure functions, keeps input and output at clear boundaries, and recommends safe alternatives to partial functions. It also helps with Cabal or Stack project structure.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Use this skill when

  • Working on haskell pro tasks or workflows
  • Needing guidance, best practices, or checklists for haskell pro

Do not use this skill when

  • The task is unrelated to haskell pro
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

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.

FAQ

Which Haskell libraries does it mention?

It mentions Aeson for JSON, Megaparsec for parsing, and STM for concurrency.

Does it help with performance?

Yes, it covers strictness, profiling and fusion for performance tuning.

Is it for beginners?

It is aimed at developers comfortable with functional programming, since it covers advanced type systems.

Details

Original description by the author

Expert Haskell engineer specializing in advanced type systems, pure

repo: davila7/claude-code-templates

Popularity

GitHub stars
33k
Ranking position
#8770
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills