Simple unification-based type inference for GADTS

180Citations
Citations of this article
67Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Generalized algebraic data types (GADTs), sometimes known as "guarded recursive data types" or "first-class phantom types", are a simple but powerful generalization of the data types 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. Copyright © 2006 ACM.

Cite

CITATION STYLE

APA

Jones, S. P., Vytiniotis, D., Weirich, S., & Washburn, G. (2006). Simple unification-based type inference for GADTS. In Proceedings of the ACM SIGPLAN International Conference on Functional Programming, ICFP (Vol. 2006, pp. 50–61). Association for Computing Machinery. https://doi.org/10.1145/1159803.1159811

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free