From 7cc5505f200862e866da4f98f8ad0810792ef919 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 9d8a65b927c..16b572dd699 100644 --- a/Cabal/Distribution/Simple.hs +++ b/Cabal/Distribution/Simple.hs @@ -134,7 +134,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)