Rail compiler written in Haskell