Skip to content

Haskell

FunctionalStaticGC

A purely functional language built on immutability, monads, and a powerful type system that catches errors at compile time. Niche in industry but deeply influential (Rust's traits, Swift's optionals, Java's streams all trace back here). Same total concepts as Python (75) but radically different shape — heavy on types and functions, minimal OOP.

Quality
QualityQuality — Fewer Lines: 18Quality — Fewer Concepts: 8Quality — Low Noise: 2.3Quality — Safe: 4.8Quality — Lightweight: 0.2Quality — Info per Line: 5Fewer LinesFewer ConceptsLow NoiseSafeLightweightInfo per Line
Concept Distribution
Concept DistributionConcept Distribution — Types: 22Concept Distribution — Control: 8Concept Distribution — Functions: 15Concept Distribution — OOP/Data: 3Concept Distribution — Memory: 2Concept Distribution — Concurrency: 8Concept Distribution — Metaprog: 5Concept Distribution — Errors: 12TypesControlFunctionsOOP/DataMemoryConcurrencyMetaprogErrors
Safety4.8 / 5
Memory
Compile-time
GC + immutability prevent memory corruption
Null
Compile-time
No null — Maybe type with pattern matching required
Data Races
Compile-time
Immutability + STM prevent data races by design
Overflow
Runtime
Runtime error on bounded types, not compile-time
Coercion
Compile-time
No implicit conversions — strong type system
Compile-timeRuntimeOpt-inNone
Expressivenessavg across benchmarks
Lines
21.9
Verbosity
661
Ceremony
0.2
Surface Area75 concepts
24 reserved keywords
Types
22
Control
8
Functions
15
OOP/Data
3
Memory
2
Concurrency
8
Metaprog
5
Errors
12
Explicitness
32% explicit68% implicit
32% of 75 concepts have dedicated keyword syntax. The rest are learned through documentation and practice.
AI Readiness
Type Coverage
Static + Inference
LLM Tokens
201.7
Tok/Line
9.3
Lower tokens = cheaper API calls. Higher type coverage = more for AI to work with.

Solutions

View all Haskell solutions in the problem pages.