paperbot · PL 论文追踪

RSS

Constraint-based type inference for FreezeML

ICFP 6(ICFP)2022
Frank Emrich, Jan Stolarek, James Cheney, Sam Lindley

尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。

原文摘要(Abstract)

FreezeML is a new approach to first-class polymorphic type inference that employs term annotations to control when and how polymorphic types are instantiated and generalised. It conservatively extends Hindley-Milner type inference and was first presented as an extension to Algorithm W. More modern type inference techniques such as HM(X) and OutsideIn(X) employ constraints to support features such as type classes, type families, rows, and other extensions. We take the first step towards modernising FreezeML by presenting a constraint-based type inference algorithm. We introduce a new constraint language, inspired by the Pottier/Rémy presentation of HM(X), in order to allow FreezeML type inference problems to be expressed as constraints. We present a deterministic stack machine for solving FreezeML constraints and prove its termination and correctness.

链接与引用

DOI 原文 ·

BibTeX
@article{paperbot1490,
  title = {Constraint-based type inference for FreezeML},
  author = {Frank Emrich and Jan Stolarek and James Cheney and Sam Lindley},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {6},
  number = {ICFP},
  year = {2022},
  doi = {10.1145/3547642}
}