Simplified codegen api
Sharing non-compiling version of Haskell codegen for Shyam