haskell-pure-functional-programming
/haskell-pure-functional-programming
Use this skill when authoring provably correct Haskell software using monads, applicative functors, algebraic data types, and type inference.
- Author
- nextboxis ↗
- Repository
- library-skill-agents ↗
- Licence
- MIT
- Last repository change
- 28.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use this skill when authoring provably correct Haskell software using monads, applicative functors, algebraic data types, and type inference.
Original author description
Use this skill when authoring provably correct Haskell software using monads, applicative functors, algebraic data types, and type inference.
How it works
- When to use
- Prerequisites
- Step-by-step workflow
- Commands / code examples
- Common mistakes & pitfalls
- Verification checklist
- Related skills
SKILL.md preview
---
name: haskell-pure-functional-programming
description: Use this skill when authoring provably correct Haskell software using monads, applicative functors, algebraic data types, and type inference.
---
# Haskell Pure Functional Programming
## When to use
Use this skill when you need to authoring provably correct Haskell software using monads, applicative functors, algebraic data types, and type inference.
## Prerequisites
- Working knowledge of relevant programming language or database fundamentals.
- Access to testing environment or local runtime instance.
## Step-by-step workflow
1. **Analyze operational requirements**: Review performance boundaries, data integrity constraints, and query patterns.
2. **Design schema / interface**: Define explicit data contracts, types, or indexes supporting planned operations.
3. **Implement core routines**: Construct declarative, type-safe, or parameterized queries and functions.
4. **Validate performance**: Verify execution metrics using profilers, EXPLAIN plans, or benchmark test suites.
5. **Implement defensive controls**: Enforce timeout boundaries, connection pooling limits, and transaction safety.
## Commands / code examples
```haskell
module TransactionEngine where
data Currency = USD | EUR | GBP deriving (Show, Eq)
data Money = Money { amount :: Double, currency :: Currency } deriving (Show, Eq)
convert :: Double -> Money -> Money
convert rate (Money amt curr) = Money (amt * rate) curr
safeDivide :: Double -> Double -> Maybe Double
safeDivide _ 0 = Nothing
safeDivide x y = Just (x / y)
```
## Common mistakes & pitfalls
- Overlooking indexing strategies on foreign keys and frequently queried filter columns.
- Running unparameterized dynamic queries, creating severe SQL injection vulnerabilities.
- Holding open long-running database transactions during slow external network calls.
## Verification checklist
- [ ] Schema contracts and type signatures are strictly enforced.
- [ ] Queries are fully parameterized against injection vulnerabilities.
- [ ] Profiling or execution plans show optimal resource consumption.
- [ ] Error handling safely releases locks and rolls back aborted transactions.
## Related skills
- postgresql-query-optimization-explain
- sql-anti-patterns-remediation
- acid-transactions-isolation-levels
- secure-code-review-static-analysis-sast
Versions
The database has no other skills named haskell-pure-functional-programming.
Database snapshot: 13.11.2026 · package version 02f9cce33750 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100haskell-expert
Expert knowledge in Haskell functional programming, advanced type system, monads, lazy evaluation, and purely functional design. Use when the user mentions functional programming, monads, type system, lazy evaluation, pure functions, or category theory, or when the task involves… - 100haskell-pro
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use for type-level programming, concurrency, and architecture guidance. - 100haskell
Expert Haskell assistance covering pure functional programming, monads, typeclasses, GHC, and Cabal/Stack. Use when developing provably correct software, compilers, financial models, or theorem provers. - 86haskell
Haskell开发专家助手。当用户需要进行Haskell纯函数式编程、类型系统设计、单子抽象或GHC项目开发时调用。 - 90tricorder-mcp
Check GHCi build status, diagnostics, and test results for this Haskell project via the tricorder MCP server. Use when asked to check the build, see compiler errors/warnings, or run tricorder. - 100scala-functional-object-programming
Use this skill when authoring robust Scala 3 applications using case classes, pattern matching, type classes, and pure functions.