Refactor cabal file