Script to auto generate haskell file