An elegant blog post demonstrating conversion to A-Normal Form (important in SSA in compilers) using Liquid Haskell:
miniblog.
Related Posts
Squid is a remarkable quasiquotation library that ensures all of your code transformations are sound! It checks for types and free variables, and has a really neat way of pattern-matching on code with alpha conversion.


