What is Haskell written in?
The Haskell compiler is written in Haskell (well-documented). Its runtime is implemented in C (documented). Haskell is self-hosting.
Relationship Graph
All directly connected languages. Click any node to navigate to its page.
Compiler Implementation
| Language | Confidence | Notes | Source |
|---|---|---|---|
| Haskell | 98% | GHC is self-hosting, written in Haskell | Source |
Runtime Implementation
| Language | Confidence | Notes | Source |
|---|---|---|---|
| C | 90% | GHC RTS (runtime system) written in C | Source |
Influenced By
- Miranda — Miranda's lazy evaluation and type classes directly inspired Haskell
- ML — Haskell drew heavily from ML's type system
- Lisp — Lisp influenced Haskell's functional paradigm
Languages Haskell Influenced
- Elm — Elm inspired directly by Haskell
- PureScript — PureScript is Haskell-inspired
- Idris — Idris extends Haskell with dependent types
- Scala — Scala's type system influenced by Haskell
- Agda — Agda influenced by Haskell's type theory
- Python — Haskell influenced Python's list comprehensions and functional features
- Rust — Rust adopted algebraic types and type classes from Haskell
- Swift — Swift influenced by Haskell's type system
- Kotlin — Kotlin's functional features influenced by Haskell
- TypeScript — TypeScript's algebraic types influenced by Haskell/ML
- F# — F# influenced by Haskell's functional patterns
- CoffeeScript — Partial influence, lower confidence
Frequently Asked Questions
What language is Haskell written in?
Haskell is primarily implemented in Haskell and C. See the implementation section above for details and source references.
What languages influenced Haskell?
Haskell was influenced by ML, Miranda, Lisp among others. See the influence section above for the full list.
Which languages did Haskell influence?
Haskell influenced Elm, PureScript, CoffeeScript among others.
Is Haskell self-hosting?
Yes, Haskell is self-hosting — its compiler can compile itself.
Evidence Sources
- https://en.wikipedia.org/wiki/Haskell
- https://en.wikipedia.org/wiki/Elm_(programming_language)
- https://en.wikipedia.org/wiki/PureScript
- https://en.wikipedia.org/wiki/CoffeeScript
- https://doc.rust-lang.org/reference/influences.html
- https://www.haskell.org/ghc/
- https://github.com/elm/compiler
- https://github.com/purescript/purescript
- https://gitlab.haskell.org/ghc/ghc
- https://fsharp.org/history/hopl-final/hopl-fsharp.pdf
- https://en.wikipedia.org/wiki/Glasgow_Haskell_Compiler
- https://en.wikipedia.org/wiki/Python_(programming_language)
- https://en.wikipedia.org/wiki/Scala_(programming_language)
- https://en.wikipedia.org/wiki/Swift_(programming_language)
- https://en.wikipedia.org/wiki/Idris_(programming_language)
- https://en.wikipedia.org/wiki/Agda_(programming_language)
- https://en.wikipedia.org/wiki/Kotlin_(programming_language)
- https://en.wikipedia.org/wiki/TypeScript