update haskell tree generation script