Wrote a tutorial on type inference that covers HM, bidirectional type-checking, row polymorphism, newtypes, type annotations, and the value restriction. Check it out! www.blog.akhil.cc/type-inferen...
Type Inference (Part 1)
A tutorial on Hindley Milner type inference.
blog.akhil.cc