Better HN
topnewbestaskshowjobs
Log inSign up

labbekak

31 karma · joined Oct 30, 2017 (9y ago) · 1 submissions

Submissions

comment 9y ago · link · parent

I recommend the paper "Complete and Easy Bidirectional Typechecking for Higher-Rank Polymorphism" by Dunfield and Krishnaswami. It describes an easy to implement algorithm for type inference for higher ranked types that can subsume Hindley-Milner.

Implementation in Haskell: https://github.com/ollef/Bidirectional

Implementation in Javascript/Typescript (by me): https://github.com/atennapel/bidirectional.js