Functional programming compiler for a subset of Haskell