Refactored cabal template