Programming language · 1990

Haskell

Purely functional programming language.

Official site ›
Haskell logo
Haskell, CWritten in
1990First released
Lennart Augustsson, Warren Burton, Kevin Hammond, and Paul HudakDeveloper
staticTyping
Built fromInfluenced Haskell HaskellCMirandaMLLispCleanHopeElmPureScriptIdrisScalaAgdaUnisonPythonRust
CompilerRuntimeInfluence

What is Haskell written in?

The Glasgow Haskell Compiler (GHC) is written in Haskell and is self-hosting. Its runtime system, which handles lazy evaluation and garbage collection, is written in C.

What Haskell is used for

Haskell is a purely functional language used in academia, research, and industries that prize correctness, finance, compilers, and formal verification. Its strong type system and laziness make it a laboratory for language ideas later adopted elsewhere.

Notable software: the Cardano blockchain, parts of financial trading systems, and the pandoc document converter.

About Haskell

Haskell is a purely functional programming language. It is a statically typed and garbage-collected language that compiles ahead of time to native machine code. It supports functional programming.

Haskell first appeared in 1990 and was designed by Lennart Augustsson, Warren Burton, Kevin Hammond, and Paul Hudak. Development is led by John Hughes. Haskell keeps a steady, moderate following today.

Haskell in the language family tree

Haskell drew on ideas from ML, Miranda, Lisp, Clean, and Hope and went on to influence Elm, PureScript, CoffeeScript, Rust, F#, and Python.

Sources: Wikipedia · Wikidata · Official site

Quick Facts

Short answer
GHC is written in Haskell
Runtime system
Written in C
Self-hosting
Yes
Backend
Native code generator or LLVM

GHC and its C runtime

GHC compiles Haskell to native code, optionally through an LLVM backend. The compiler is a large Haskell program and is bootstrapped from a previous GHC. Underneath sits the runtime system (RTS), written in C, which implements Haskell's lazy evaluation, lightweight threads, and generational garbage collector.

Frequently Asked Questions

What language is Haskell written in?
The main Haskell compiler, GHC, is written in Haskell and is self-hosting. The GHC runtime system (RTS), which manages lazy evaluation, threads, and garbage collection, is written in C.
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.
When was Haskell first released?
Haskell was first released in 1990. It was designed by Lennart Augustsson, Warren Burton, Kevin Hammond, and Paul Hudak.

Evidence Sources

Discover More

Embed this graph

Paste this iframe into any HTML page to show the Haskell relationship graph.

<iframe src="https://www.languagelineage.org/embed?lang=haskell" width="100%" height="500" loading="lazy" style="border:0" title="Haskell relationship graph"></iframe>

Please attribute the visualization to Language Lineage and link to the Haskell source record.

Explore Haskell in Graph →