Refactoring the cabal configuration file.