Improve Haskell compilation