Publication | Closed Access
Simple unification-based type inference for GADTs
335
Citations
19
References
2006
Year
Unknown Venue
EngineeringData TypeData ScienceGeneric ProgrammingAutomated ReasoningProgram AnalysisAlgebraic DataType TheoryDependently Typed ProgrammingFormal MethodsSoftware AnalysisType InferenceComputer ScienceType SystemPowerful GeneralizationFormal Verification
Generalized algebraic data (GADTs), sometimes known as guarded recursive data types or first-class phantom are a simple but powerful generalization of the data of Haskell and ML. Recent works have given compelling examples of the utility of GADTs, although type inference is known to be difficult. Our contribution is to show how to exploit programmer-supplied type annotations to make the type inference task almost embarrassingly easy. Our main technical innovation is wobbly types, which express in a declarative way the uncertainty caused by the incremental nature of typical type-inference algorithms.
| Year | Citations | |
|---|---|---|
Page 1
Page 1