Generalized algebraic data type
From Wikipedia, the free encyclopedia
(Redirected from GADT)
|
|
This article is in need of attention from an expert on the subject. WikiProject Computer science or the Computer science Portal may be able to help recruit one. (November 2008) |
Generalized algebraic data types are generalizations of the algebraic data types of Haskell and ML, applying to parametric types. With this extension, the parameters of the return type of a data constructor can be freely chosen when declaring the constructor, while for algebraic data types in Haskell 98, the type parameter of the return value is inferred from data types of parameters; they are currently implemented in the GHC compiler as a non-standard extension, used by, among others, darcs.
[edit] External links
| Wikibooks has a book on the topic of |
- Page on the Haskell wiki
- Generalised Algebraic Data Types in the GHC Users' Guide
- "Simple unification-based type inference for GADTs" – (PDF; by Simon Peyton Jones, Dimitrios Vytiniotis, Stephanie Weirich, and Geoffrey Washburn.
- "First-Class Phantom Types" – (by James Cheney and Ralf Hinze)
- Generalized Algebraic Data Types and Object-Oriented Programming
- GADTs – Haskell Prime – Trac
- "Generalised Algebraic Data Types, Phantom Types and Dependent Types"
|
|||||||||||||||||||||||
![]() |
This type theory-related article is a stub. You can help Wikipedia by expanding it. |
