Flexible types: robust type inference for first-class polymorphism

We present HML, a type inference system that supports full firstclass polymorphism where few annotations are needed: only function parameters with a polymorphic type need to be annotated. HML is a simplification of MLF where only flexibly quantified types are used. This makes the types easier to work with from a programmers perspective, and simplifies the implementation of the type inference algorithm. Still, HML retains much of the expressiveness of MLF, it is robust with respect to small program transformations, and has a simple specification of the type rules with an effective type inference algorithm that infers principal types.

Extended version available as Microsoft Research technical report MSR-TR-2008-55, Mar 2008 (see link below)

hml.pdf
PDF file
hml.bib
File
hml-prototype.zip
ZIP compressed file

In  36th ACM SIGACT-SIGPLAN Symposium on Principles of Programming Languages (POPL'09)

Publisher  ACM SIGPLAN
Copyright © 2009 by the Association for Computing Machinery, Inc. Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, to republish, to post on servers, or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from Publications Dept, ACM Inc., fax +1 (212) 869-0481, or permissions@acm.org. The definitive version of this paper can be found at ACM’s Digital Library --http://www.acm.org/dl/.

Details

TypeInproceedings
AddressSavannah, Georgia

Previous Versions

Daan Leijen. Flexible types: robust type inference for first-class polymorphism, March 2008.

> Publications > Flexible types: robust type inference for first-class polymorphism