Linear types in GHC
- type theory
- languages
GHC 9.0 introduced the LinearTypes extension, based on the Linear Haskell design. Function arrows can specify how an argument is consumed, expressing a controlled use discipline within an existing higher-order polymorphic language. The design supports applications such as resource protocols and pure interfaces to internally mutable data. It does not require every Haskell value or function to become linear, and the precise guarantee concerns consumption in the language’s semantics rather than a naive count of textual variable occurrences. [Design paper](https://arxiv.org/abs/1710.09756). **Timeline anchor:** 1 February 2021 CE. GHC 9.0, February 2021. **References:** [Source 1](https://en.wikipedia.org/wiki/Substructural_type_system).
Sources
Related
On other timelines
- LinearTypes reaches a released GHC · GHC 9.0.1 on Haskell · origins, language reports and the evolution of GHC by @athan
- GHC releases LinearTypes on Type theory · foundations, languages, proof assistants and program logics by @athan
- Linear resources, sessions and separation logic on Type theory · foundations, languages, proof assistants and program logics by @athan