[commit: Cabal] master: Allow Cabal to be build on ghc-6.8 (c3a0557)

Ian Lynagh igloo at earth.li
Wed Apr 27 03:23:12 CEST 2011


Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/c3a0557fbe443119f89943b75021e74673329522

>---------------------------------------------------------------

commit c3a0557fbe443119f89943b75021e74673329522
Author: Bas van Dijk <v.dijk.bas at gmail.com>
Date:   Wed Mar 30 10:20:36 2011 +0000

    Allow Cabal to be build on ghc-6.8

>---------------------------------------------------------------

 Distribution/Simple/Test.hs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Distribution/Simple/Test.hs b/Distribution/Simple/Test.hs
index 468ac15..3fa3296 100644
--- a/Distribution/Simple/Test.hs
+++ b/Distribution/Simple/Test.hs
@@ -84,7 +84,7 @@ import System.Directory
     ( createDirectoryIfMissing, doesFileExist, getCurrentDirectory
     , removeFile, getDirectoryContents )
 import System.Environment ( getEnvironment )
-import System.Exit ( ExitCode(..), exitFailure, exitSuccess, exitWith )
+import System.Exit ( ExitCode(..), exitFailure, exitWith )
 import System.FilePath ( (</>), (<.>) )
 import System.IO ( hClose, IOMode(..), openFile )
 import System.Process ( runProcess, waitForProcess )
@@ -306,7 +306,7 @@ test pkg_descr lbi flags = do
 
     when (not $ PD.hasTests pkg_descr) $ do
         notice verbosity "Package has no test suites."
-        exitSuccess
+        exitWith ExitSuccess
 
     when (PD.hasTests pkg_descr && null enabledTests) $
         die $ "No test suites enabled. Did you remember to configure with "





More information about the Cvs-libraries mailing list