Haskell (GHC 9.12)
This assessment applies the coupling account — coupling as access to a shared resource, and the coupling floor [1], [2] — and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4].
Snapshot Haskell (GHC 9.12) — released 16 December 2024 · lifecycle superseded (GHC 9.14 released 19 December 2025)
Family Haskell — shelf: Application
The language’s main business is building general application software, with a managed runtime or a rich standard library. A shelf groups; it does not classify — the tags below carry every use, paradigm, and platform of this snapshot.
Trajectory Haskell 1.0 (April 1990 — first language report) · GHC 9.12 (16 December 2024 — assessed compiler release)
Tags
Use — Application
Paradigm — Functional, Concurrent
Platform — Native
Lifecycle — Superseded
Memory — Managed (GC)
Typing — Static, strong
Resources
The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to Haskell (GHC 9.12); an unmarked link is the current reference for the language.
Landing page
Specification and reference
API documentation
Tutorial
Release notes
- GHC 9.12 User’s Guide this release
1 Assessment
This page assesses Haskell in five parts: core coupling — what the language’s own constructs force; ecosystem coupling — what the surrounding platform, tooling, and community cost; engineering readiness — whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile — the unscored facts a score cannot express; and the scoring detail — the mechanism marks and the arithmetic behind every score. A ✅ bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.
Core coupling 92.0/100 · Ecosystem coupling 73.8/100 · Engineering readiness 59.6/100
1.1 Core coupling
1.1.1 Type
- ✅ Pure functions separate side effects from pure logic: The type system (IO monad) keeps effects isolated, preventing hidden coupling to global state
- ✅ Type classes enable polymorphism without inheritance coupling: Abstraction through type classes (Functor, Monad, etc.) decouples interface from implementation
- ✅ Parametric polymorphism prevents coupling to concrete types:
map :: (a -> b) -> [a] -> [b]works for any types without knowing their internals - ⚠️ Monad transformers can create coupling: Stacking monads (ReaderT, StateT, ExceptT) creates order-dependent coupling
- ❌ IO monad couples all effects: Can’t separate file IO from network IO from randomness at type level (without effect systems)
- ❌ Global type class instances couple: Orphan instances create action-at-a-distance coupling
1.1.2 Construction
- ✅ Data constructors separate shape from creation logic: ADTs (Algebraic Data Types) decouple data structure from construction
- ✅ Smart constructors enable validation without coupling: Can wrap raw constructors to add invariants
- ✅ No shared mutable state: Construction doesn’t couple to global state
1.1.3 Memory
- ✅ Garbage collection decouples memory from logic: Don’t think about deallocation
- ✅ Immutability simplifies GC: No cyclic references from mutable structures
- ⚠️ GC pauses couple to runtime: Non-deterministic pauses affect real-time requirements
- ⚠️ Space leaks from lazy evaluation: Thunks accumulate, so evaluation strategy and computation order couple to memory usage
- ✅ No manual memory management: Can’t have use-after-free or double-free bugs
- ✅ The class is declared: stack overflow raises StackOverflow (the threaded runtime’s documented catchable exception) inside the handler surface (Er6)
1.1.4 Error
- ✅ Either/Maybe separate success from failure:
Either Error Resultmakes error path explicit and separate from success path - ✅ Exceptions are typed: IO exceptions are contained in IO monad, preventing hidden coupling
- ⚠️ Partial functions (
head,tail) can couple: Runtime errors bypass type system unless avoided
1.1.5 Concurrency
- ✅ STM (Software Transactional Memory) decouples concurrency from logic: Composable transactions separate concurrent coordination from business logic
- ✅ Immutability prevents temporal coupling: No shared mutable state means concurrent operations don’t interfere
- ✅ Async/threading is explicit in types: Concurrency concerns are separate via type signatures
1.1.6 Platform
- ✅ No vendor owns the language: The Haskell 2010 report is a community standard, and GHC — the de facto reference compiler — is open source under a permissive BSD-style licence
- ✅ Native-code targets: GHC emits native executables for Linux, macOS, and Windows, so no virtual machine must be installed on the target host
- ✅ Free, redistributable toolchain: GHC, Cabal, and Stack are open source and freely redistributable, with no vendor licence gate
- ✅ Open package distribution: Hackage and Stackage index open-source packages under open licences, so dependencies are not gated by a vendor registry
1.1.7 Trade-offs (not coupling)
- Performance vs. Abstraction: Lazy evaluation optimizes for composability but couples performance to evaluation strategy
- Purity vs. Practicality: IO monad is all-or-nothing—can’t separate different IO types without mtl/effect systems
- Type Class Coherence vs. Modularity: Only one instance per type globally couples modules that define instances
- Laziness vs. Predictability: Space/time behavior depends on evaluation order, creating hidden coupling
- Monad Transformer Order:
ReaderT (StateT (ExceptT ...))≠StateT (ReaderT (ExceptT ...)), order matters
1.2 Ecosystem coupling
1.2.1 Performance
- ⚠️ Lazy evaluation couples performance to evaluation strategy: Space/time behavior is non-obvious, creating coupling between logic and performance
- ⚠️ GC pauses unpredictable: Non-deterministic pauses couple timing-sensitive code to runtime behavior
- ✅ Immutability enables parallelism: No data races, can parallelize without coupling to synchronization
- ❌ Thunk accumulation: Space leaks couple memory usage to evaluation order
1.2.2 Ecosystem
- ✅ Cabal/Stack standardized: Build system is consistent
- ⚠️ Package ecosystem smaller than mainstream: Library availability couples to niche community
- ✅ GHC is excellent: Compiler quality decouples from platform-specific quirks
- ❌ Dependency hell with base library versions: Breaking changes couple code to GHC version
1.2.3 Evolution
- ✅ GHC extensions allow gradual adoption: Can opt into new features without breaking existing code
- ⚠️ Extensions create fragmentation: Different codebases use different language subsets
- ✅ Haskell 2010 standard stable: Core language doesn’t break compatibility
- ❌ Extension proliferation: Code couples to specific GHC versions and extension combinations
- ❌ Build variants multiply: -XCPP runs the C preprocessor over Haskell source, so #ifdef trees select which declarations GHC compiles (V7)
1.2.4 Domain
- ✅ Excellent for parsers, compilers, DSLs: Type system supports these domains naturally
- ⚠️ Struggles with I/O-heavy, stateful systems: IO monad creates friction for imperative domains
- ❌ Poor for systems programming: GC, unpredictable performance couples to domain requirements
- ✅ Strong for financial, formal verification: Correctness guarantees match domain needs
1.2.5 Learning
- ❌ Very steep: Monads, functors, type classes couple productivity to deep expertise
- ❌ Lazy evaluation surprises: Space leaks require expertise to debug
- ✅ Excellent documentation: Books, tutorials decouple learning from trial-and-error
- ⚠️ Multiple ways to do things: Mtl vs. transformers vs. effect systems couple to architectural choices
1.2.6 Syntax
- ✅ Concise, expressive: Minimal boilerplate
- ⚠️ Type signatures can be verbose:
:: Monad m => (a -> m b) -> ...couples readability to type system knowledge - ✅ Function composition natural:
f . g . hdecouples steps - ❌ Operator overload: Custom operators (
<$>,<*>,>>=) couple readability to library knowledge
1.2.7 Testing
- ✅ QuickCheck property testing: Built-in support for generative testing
- ✅ Pure functions easy to test: No setup/teardown coupling
- ❌ Debugging lazy code hard: Stack traces don’t show evaluation order
- ⚠️ GHCi debugger limited: Couples debugging to printf-style techniques
1.2.8 Security
- ✅ Memory safe: GC prevents use-after-free, buffer overflows
- ✅ Type safety prevents many bugs: Can’t mix incompatible types
- ✅ Immutability prevents mutation bugs: No race conditions on shared state
- ⚠️ Timing attacks possible: Lazy evaluation can leak information through timing
- ❌ Int is machine-bounded and wraps; Integer is the opt-in exact type, a mitigation at every site (Q4)
1.2.9 Delivery targets
What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.
| Target | Ships as | Crosses a producer boundary | Cross-release promise |
|---|---|---|---|
| Hackage package source | source | no | Cabal and Stack compile the package against the compiler in use |
1.3 Engineering readiness
1.3.1 Reproducibility
- ❌ Cabal and stack resolve package versions from Hackage at build time. (Y1)
- ❌ Dependency versions resolve per build unless a freeze file pins them. (Y2)
1.3.2 Supply chain
- ❌ Hackage packages carry no signed provenance by default. (Y3)
- ❌ The Hackage name space is flat. (Y4)
1.3.3 Observability
- ❌ No tracing standard exists in the language. (Y5)
- ❌ putStrLn and Debug.Trace carry no structure. (Y6)
1.3.4 Feedback
- ❌ GHC compile times are the documented cost of the toolchain. (Y7)
1.3.5 Interop
- ✅ foreign import is the in-process C interface. (Y9)
- ✅ GHC maintains ports for the common platforms. (Y10)
1.3.6 Governance
- ✅ The report enumerates, and a published suite runs: the Haskell report defines the language, and the Haskell Test Suite runs against independent implementations (Y17)
1.4 Profile
Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.
1.4.1 Energy and cost
What this axis asks: what does a running program cost in energy and time?
1.4.2 AI and agent readiness
What this axis asks: how well does a coding model and an agent work in this language?
- ❌ Sparse training data: models write it unreliably [8].
1.4.3 Safety certification
What this axis asks: is there a certified or standards-qualified path to a safety-critical system?
- ⚠️ No certified or standards-qualified path for safety-critical systems.
1.5 Scoring detail
1.5.1 Core coupling Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Type | T1 |
dynamic no static check | language | — | 0 |
T2 |
weak static | language | — | 0 | |
T3 |
dynamic/duck dispatch | language | — | 0 | |
T4 |
no sum types | language | — | 0 | |
T5 |
no generics | language | — | 0 | |
T6 |
no namespaces | language | — | 0 | |
T7 |
type erasure/reflection | language | — | 0 | |
T8 |
operator overloading | language | ✅ | −4 | |
T9 |
inheritance required for polymorphism | language | — | 0 | |
T10 |
no null-safety | language | — | 0 | |
T11 |
no module boundary | language | — | 0 | |
T12 |
no effect tracking | language | — | 0 | |
T13 |
async/sync colouring | language | — | 0 | |
T14 |
unchecked foreign boundary | language | ✅ | −4 | |
T15 |
chars are encoding units | language | — | 0 | |
| Type cost | −2.3 (−8) | ||||
| Construction | C1 |
global mutable state by default | language | — | 0 |
C2 |
no immutability by default | language | — | 0 | |
C3 |
constructors coupled to allocation | language | — | 0 | |
C4 |
no constructor/validation | language | — | 0 | |
C5 |
unpinned collection order | language | — | 0 | |
C6 |
aliasing by default | language | — | 0 | |
C7 |
undeclared control transfer | language | — | 0 | |
C8 |
no source-visible init order | language | — | 0 | |
| Construction cost | 0 | ||||
| Memory | M1 |
manual deallocation | runtime | — | 0 |
M2 |
GC non-deterministic pauses | runtime | ✅ | −8 | |
M3 |
no RAII | language | ✅ | −4 | |
M4 |
no ownership model | language | — | 0 | |
M5 |
uninitialized reads | language | — | 0 | |
M6 |
unchecked reinterpretation | language | — | 0 | |
Er6 |
uncatchable runtime fault | language | — | 0 | |
M7 |
reference cycles leak | runtime | — | 0 | |
| Memory cost | −3.4 (−12) | ||||
| Error | Er1 |
no structured path | language | — | 0 |
Er2 |
unchecked exceptions only | language | — | 0 | |
Er3 |
errors ignored/non-exhaustive | language | ✅ | −4 | |
Er4 |
no composable result type | language | — | 0 | |
Er5 |
no isolation unit for a fault | runtime | — | 0 | |
| Error cost | −1.1 (−4) | ||||
| Concurrency | K1 |
GIL/no parallel | runtime | — | 0 |
K2 |
shared mutable state default | language | — | 0 | |
K3 |
manual sync no race detection | runtime | — | 0 | |
K4 |
no structured concurrency | language | ✅ | −4 | |
K5 |
no primitives | language | — | 0 | |
K6 |
thread-per-task cost | runtime | — | 0 | |
| Concurrency cost | −1.1 (−4) | ||||
| Platform | P1 |
cannot function outside one vendor/domain | context | — | 0 |
P2 |
single-vendor but other uses | context | — | 0 | |
P3 |
legacy/discontinued platform | context | — | 0 | |
P4 |
poor domain fit | context | — | 0 | |
| Platform cost | 0 |
Core coupling score: 92.0/100 — 28 of the 350 inventory points are present, so the axis cost is 100 × 28 ÷ 350 = 8.0 and the score is 100 − 8.0. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
1.5.2 Ecosystem coupling Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Performance | R1 |
interpreted no AOT/JIT | runtime | — | 0 |
R2 |
GC pauses | runtime | ✅ | −8 | |
R3 |
JIT warmup | runtime | — | 0 | |
| Performance cost | −3.1 (−8) | ||||
| Ecosystem | Ec1 |
no package manager | context | — | 0 |
Ec2 |
fragmented tooling | context | — | 0 | |
Ec3 |
small/niche/discontinued | context | ✅ | −8 | |
Ec4 |
proprietary | context | — | 0 | |
Ec5 |
platform-locked tooling | context | — | 0 | |
Ec6 |
monoculture | context | — | 0 | |
Ec7 |
legacy burden | context | — | 0 | |
Ec8 |
unpromised binary boundary | context | — | 0 | |
Ec9 |
unpromised data boundary | context | — | 0 | |
| Ecosystem cost | −3.1 (−8) | ||||
| Evolution | V1 |
breaking changes | language | ✅ | −8 |
V2 |
frozen | context | — | 0 | |
V3 |
discontinued | context | — | 0 | |
V4 |
glacial standards | context | — | 0 | |
V5 |
silent default drift | runtime | — | 0 | |
V7 |
build-variant state space | context | ✅ | −8 | |
| Evolution cost | −6.2 (−16) | ||||
| Domain | D1 |
domain/vendor lock-in | context | — | 0 |
D3 |
framework forces architecture | context | — | 0 | |
| Domain cost | 0 | ||||
| Learning | L1 |
steep | context | ✅ | −8 |
L2 |
large surface/multi-paradigm | context | ✅ | −4 | |
L3 |
sparse docs | context | — | 0 | |
| Learning cost | −4.7 (−12) | ||||
| Syntax | S1 |
verbose | language | — | 0 |
S2 |
inconsistent | language | — | 0 | |
S3 |
punctuation-heavy | language | — | 0 | |
| Syntax cost | 0 | ||||
| Testing | G1 |
weak tooling | context | — | 0 |
G2 |
poor debugging | context | ✅ | −8 | |
G3 |
runtime-only errors | context | — | 0 | |
G4 |
no published monotonic clock | runtime | — | 0 | |
| Testing cost | −3.1 (−8) | ||||
| Security | Q1 |
memory-unsafe | language | — | 0 |
Q2 |
dynamic/weak typing risk | language | — | 0 | |
Q3 |
known vulnerability/injection | context | — | 0 | |
Q4 |
silent integer overflow | language | ✅ | −15 | |
| Security cost | −5.9 (−15) |
Ecosystem coupling score: 73.8/100 — 67 of the 256 inventory points are present, so the axis cost is 100 × 67 ÷ 256 = 26.2 and the score is 100 − 26.2. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
1.5.3 Engineering readiness Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Reproducibility | Y1 |
build not reproducible | context | ✅ | −15 |
Y2 |
dependencies not pinned | context | ✅ | −8 | |
Y14 |
no toolchain version pin | context | — | 0 | |
Y18 |
no machine-read project contract | context | — | 0 | |
| Reproducibility cost | −13.5 (−23) | ||||
| Supply chain | Y3 |
no signed provenance | context | ✅ | −15 |
Y4 |
registry without namespacing | context | ✅ | −4 | |
Y16 |
no advisory feed | context | — | 0 | |
| Supply chain cost | −11.1 (−19) | ||||
| Observability | Y5 |
no stable tracing standard | context | ✅ | −8 |
Y6 |
no structured logging | context | ✅ | −4 | |
Y15 |
no post-mortem diagnostics | runtime | — | 0 | |
| Observability cost | −7.0 (−12) | ||||
| Feedback | Y7 |
slow build | context | ✅ | −15 |
Y8 |
no fast in-editor analysis | context | — | 0 | |
Y13 |
no bundled debugger | context | — | 0 | |
| Feedback cost | −8.8 (−15) | ||||
| Interop | Y9 |
no foreign-function interface | language | — | 0 |
Y10 |
no portable target | context | — | 0 | |
| Interop cost | 0 | ||||
| Governance | Y11 |
single-vendor governance | context | — | 0 |
Y12 |
closed specification | context | — | 0 | |
Y17 |
no conformance mechanism | context | — | 0 | |
Y19 |
no published parser | context | — | 0 | |
| Governance cost | 0 |
Engineering readiness score: 59.6/100 — 69 of the 171 inventory points are present, so the axis cost is 100 × 69 ÷ 171 = 40.4 and the score is 100 − 40.4. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
Verdict: Haskell’s type system detects and prevents coupling at compile time. Pure functions, explicit effects, and immutability make coupling visible and preventable. Main weaknesses: IO monad is too coarse-grained, lazy evaluation creates non-obvious coupling, monad transformers stack coupling.
The formal development. The definitions, theorems, and proofs behind this page are published in:
- On the Nature of Coupling: All Coupling as Shared Resource Access — Zenodo, 2026 — doi:10.5281/zenodo.21925122
- Coupling as a Consequence of Cohesion: Decomposition, the Coupling Floor, and Domain-Imposed Coupling — Zenodo, 2026 — doi:10.5281/zenodo.21925201
- On the Nature of Cohesion: Cohesion as Correctness Relative to a Partitioning Rule — Zenodo, 2026 — doi:10.5281/zenodo.21703193