Functional Software Stockholm AB’s Post

If you are a functional programmer you’re probably familiar with *Hindley-Milner type inference*, the type inference system used in ML-style languages like Haskell, OCaml, F#, etc. However, there is a less common style of type inference called “bidirectional type inference”, which requires more type annotations but yields some interesting properties in return. David Thrane Christiansen has a good write up of this style of inference: https://lnkd.in/dmpyixwW

Bidirectional Typing Rules: A Tutorial

davidchristiansen.dk

To view or add a comment, sign in

Explore topics