Haskell Type Design

Design Haskell domain types and records idiomatically. Covers type-driven design (domain types first, functions second), newtypes for primitives, "parse don't validate", phantom types for state machines, and record conventions (positional vs named, field prefixes, NamedFieldPuns, when to reach for optics). Use when modeling a domain in Haskell, defining records or sum types, reviewing type design, or explaining the type-first mindset.

ivelten Updated

File contents

ivelten/claude-haskell-skills/tree/main/plugins/haskell/skills/haskell-type-design commit 448f4754c0

Frequently asked questions

npx skillmds@latest add ivelten/haskell-type-design