From 322ddbc019bf2386897b9b9be7d534cc0e4d39c1 Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Mon, 21 Apr 2014 13:51:12 +0200 Subject: [PATCH] Use import list to hide new System.Exit.die Starting with GHC 7.10 (and soon GHC HEAD), System.Exit exports the new `die` which would clash with Cabal's own `die`. See also https://ghc.haskell.org/trac/ghc/ticket/9016 For more details. --- Cabal/Distribution/Simple.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cabal/Distribution/Simple.hs b/Cabal/Distribution/Simple.hs index 584a52ed1b8..57ea278b4a7 100644 --- a/Cabal/Distribution/Simple.hs +++ b/Cabal/Distribution/Simple.hs @@ -105,7 +105,7 @@ import Distribution.Text import System.Environment(getArgs, getProgName) import System.Directory(removeFile, doesFileExist, doesDirectoryExist, removeDirectoryRecursive) -import System.Exit +import System.Exit (exitWith,ExitCode(..)) import System.IO.Error (isDoesNotExistError) import Control.Exception (throwIO) import Distribution.Compat.Environment (getEnvironment)