Building a modern functional compiler from first principles. (http://dev.stephendiehl.com/fun/)
Write You a Haskell is an educational resource by Stephen Diehl for building a modern functional compiler from first principles. The project combines a book (available in HTML and PDF formats) with accompanying Haskell source code examples covering topics from lambda calculus and type systems through Hindley-Milner type inference, evaluation strategies, and compiler design. The code examples are built in Haskell using Cabal and Stack, and include progressively complex implementations such as untyped and typed arithmetic evaluators, lambda calculus interpreters, polymorphic type inference systems, and a parser generator using the Happy and Alex toolchain. All source code is released under the MIT License.