Grow Your Own Type System
github.com
github.com
"The book that I really, really want: Lisp in Small Pieces, but for type theory"
https://twitter.com/d_christiansen/status/573767527081316354
I want that book too.
I don't think it includes row typing though.
https://www.cis.upenn.edu/~bcpierce/tapl/checkers/
The code is pretty elegant. I think it's intended to be clear enough for students in his classes to modify.
That said, they are still very useful, and I'm thankful that the author published them!