Authors
Tom Schrijvers, Simon Peyton Jones, Martin Sulzmann, Dimitrios Vytiniotis
Publication date
2009/8/31
Journal
ACM Sigplan Notices
Volume
44
Issue
9
Pages
341-352
Publisher
ACM
Description
GADTs have proven to be an invaluable language extension, for ensuring data invariants and program correctness among others. Unfortunately, they pose a tough problem for type inference: we lose the principal-type property, which is necessary for modular type inference.
We present a novel and simplified type inference approach for local type assumptions from GADT pattern matches. Our approach is complete and decidable, while more liberal than previous such approaches.
Total citations
Scholar articles
T Schrijvers, S Peyton Jones, M Sulzmann, D Vytiniotis - ACM Sigplan Notices, 2009