adds cabal file, generated code compiles