Skip to content

Commit

Permalink
Use import list to hide new System.Exit.die
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hvr committed Apr 21, 2014
1 parent 370f07c commit 322ddbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cabal/Distribution/Simple.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

2 comments on commit 322ddbc

@hvr
Copy link
Member Author

@hvr hvr commented on 322ddbc Apr 21, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc @tibbe please merge this into 1.20, as we need that to unblock GHC #9016

@tibbe
Copy link
Member

@tibbe tibbe commented on 322ddbc Apr 21, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Please sign in to comment.