Omnidirectional type inference for ML: principality any way
arxiv.org·6h
Flag this post

Title:Omnidirectional type inference for ML: principality any way

View PDF

Abstract:The Damas-Hindley-Milner (ML) type system owes its success to principality, the property that every well-typed expression has a unique most general type. This makes inference predictable and efficient. Unfortunately, many extensions of ML (GADTs, higher-rank polymorphism, and static overloading) endanger princpality by introducing _fragile_ constructs that resist principal inference. Existing approaches recover principality through directional inference algorithms, which propagate _known_ type information in a fixed (or static) order (e.g. as in bidirectional typing) to disambiguate such constructs. However, the rigidity of a static inference orde…

Similar Posts

Loading similar posts...